mirror of
https://gitlab.silvrtree.co.uk/martind2000/SODashServer.git
synced 2025-01-25 21:56:17 +00:00
14 lines
576 B
JavaScript
14 lines
576 B
JavaScript
(function(factory) {
|
|
// Support three module loading scenarios
|
|
if (typeof define === 'function' && define['amd']) {
|
|
// [1] AMD anonymous module
|
|
define(['exports', 'require'], factory);
|
|
} else if (typeof exports === 'object' && typeof module === 'object') {
|
|
// [2] CommonJS/Node.js
|
|
factory(module['exports'] || exports); // module.exports is for Node.js
|
|
} else {
|
|
// [3] No module loader (plain <script> tag) - put directly in global namespace
|
|
factory(window['ko'] = {});
|
|
}
|
|
}(function(koExports, amdRequire){
|