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 = {};
var url = OctoPrint.getBlueprintUrl("softwareupdate");
@@ -78,6 +78,8 @@
};
OctoPrint.plugins.softwareupdate = exports;
return OctoPrint.plugins.softwareupdate;
});
$(function() {