diff --git a/util.js b/util.js index 530e20e..1e07a47 100644 --- a/util.js +++ b/util.js @@ -44,6 +44,11 @@ function isDefined(x) { } function getCurrentOption (option) { + if (!$.cookie (option)) { + if (currentData && currentData.const && currentData.const.config && currentData.const.config [option]) { + return currentData.const.config [option]; + } + } return $.cookie (option); }