Merge pull request #3116 from Icinga/fix/no-debug-rendering-while-disabled-3115

icinga/ui.js: don't spend time for UI debug...
This commit is contained in:
lippserd 2017-11-21 14:09:12 +01:00 committed by GitHub
commit 7fd9f23f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,9 @@
}, },
refreshDebug: function () { refreshDebug: function () {
if (! this.debug) {
return;
}
var size = this.getDefaultFontSize().toString(); var size = this.getDefaultFontSize().toString();
var winWidth = $( window ).width(); var winWidth = $( window ).width();