icinga/ui.js: don't spend time for UI debug...

...while not being shown.

fixes #3115
This commit is contained in:
Thomas Gelf 2017-11-21 12:26:25 +01:00
parent 745674dbe4
commit 0edcfdee33
1 changed files with 3 additions and 0 deletions

View File

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