move isCombinedMode to AppBase so we wouldn't crash in preferences

This commit is contained in:
Andrew Dolgov 2020-06-02 21:00:53 +03:00
parent ac17ded854
commit 676cdf6ee4
2 changed files with 3 additions and 3 deletions

View File

@ -134,6 +134,9 @@ define(["dojo/_base/declare"], function (declare) {
}
},
isCombinedMode: function() {
return this.getInitParam("combined_display_mode");
},
getActionByHotkeySequence: function (sequence) {
const hotkeys_map = App.getInitParam("hotkeys");

View File

@ -204,9 +204,6 @@ require(["dojo/_base/kernel",
return Feeds.reloadCurrent('');
},
isCombinedMode: function() {
return App.getInitParam("combined_display_mode");
},
hotkeyHandler: function(event) {
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") return;