diff --git a/octoprint_fanspeedslider/static/js/fanslider.js b/octoprint_fanspeedslider/static/js/fanslider.js index 5ca6260..1ace80d 100644 --- a/octoprint_fanspeedslider/static/js/fanslider.js +++ b/octoprint_fanspeedslider/static/js/fanslider.js @@ -62,8 +62,12 @@ $(function() { fanSpeed(self.settings.settings.plugins.fanspeedslider.defaultFanSpeed()); } } - OCTOPRINT_VIEWMODELS.push([ - FanSliderPluginViewModel, - ["settingsViewModel", "controlViewModel", "loginStateViewModel"] - ]); -}); + + OCTOPRINT_VIEWMODELS.push({ + construct: FanSliderPluginViewModel, + additionalNames: [], + dependencies: ["settingsViewModel", "controlViewModel", "loginStateViewModel"], + optional: [], + elements: [] + }); +}); \ No newline at end of file