diff --git a/octoprint_klipper/static/js/klipper_settings.js b/octoprint_klipper/static/js/klipper_settings.js index b1d8aa8..2118691 100644 --- a/octoprint_klipper/static/js/klipper_settings.js +++ b/octoprint_klipper/static/js/klipper_settings.js @@ -32,10 +32,10 @@ $(function () { self.markedForFileRemove = ko.observableArray([]); self.checkFontsize = function () { - if (settings.settings.plugins.klipper.configuration.fontsize() > 20) { - settings.settings.plugins.klipper.configuration.fontsize(20) - } else if (settings.settings.plugins.klipper.configuration.fontsize()< 9) { - settings.settings.plugins.klipper.configuration.fontsize(9) + if (self.settings.settings.plugins.klipper.configuration.fontsize() > 20) { + self.settings.settings.plugins.klipper.configuration.fontsize(20) + } else if (self.settings.settings.plugins.klipper.configuration.fontsize()< 9) { + self.settings.settings.plugins.klipper.configuration.fontsize(9) } } // initialize list helper