Browse Source

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

Andrew Dolgov 3 months ago
parent
commit
676cdf6ee4
2 changed files with 3 additions and 3 deletions
  1. 3 0
      js/AppBase.js
  2. 0 3
      js/tt-rss.js

+ 3 - 0
js/AppBase.js

@@ -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");
 

+ 0 - 3
js/tt-rss.js

@@ -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;