Fix UMD pattern

This commit is contained in:
Gina Häußge committed 2017-01-26 14:59:54 +01:00
1 parent 7ab3eabe0f
commit b0cd742bf4
20 files changed
+89 -54

No files matched your search

@@ -2,9 +2,9 @@
if (typeof define === "function" && define.amd) {
define(["OctoPrint"], factory);
} else {
factory(window.OctoPrint);
factory(global.OctoPrint);
}
})(window || this, function(OctoPrint) {
})(this, function(OctoPrint) {
var exports = {};
exports.get = function(refresh, opts) {
@@ -63,6 +63,8 @@
};
OctoPrint.plugins.pluginmanager = exports;
return OctoPrint.plugins.pluginmanager;
});
$(function() {