fix previous to not crash in prefs

This commit is contained in:
Andrew Dolgov 2018-12-09 16:09:51 +03:00
parent 5e007e0090
commit a1c595687e
1 changed files with 4 additions and 2 deletions

View File

@ -318,8 +318,10 @@ define(["dojo/_base/declare"], function (declare) {
_label_base_index = parseInt(params[k]); _label_base_index = parseInt(params[k]);
break; break;
case "cdm_auto_catchup": case "cdm_auto_catchup":
if (params[k] == 1) if (params[k] == 1) {
$("headlines-frame").addClassName("auto_catchup"); const hl = $("headlines-frame");
if (hl) hl.addClassName("auto_catchup");
}
break; break;
case "hotkeys": case "hotkeys":
// filter mnemonic definitions (used for help panel) from hotkeys map // filter mnemonic definitions (used for help panel) from hotkeys map