summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-01 21:51:00 +0300
committerAndrew Dolgov <[email protected]>2018-12-01 21:51:00 +0300
commitcc26be0793c6c0e44a540c25f86627342a82714f (patch)
treee38a894845086db52d7977b38ffa2857754236b6 /js/prefs.js
parentab0fadf60d2576564b6fe6e2dd15699c1516de9f (diff)
migrate tt-rss.js contents to App
Diffstat (limited to 'js/prefs.js')
-rwxr-xr-xjs/prefs.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/js/prefs.js b/js/prefs.js
index a9417cf3c..8308a747f 100755
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -65,7 +65,7 @@ const App = {
});
},
initSecondStage: function() {
- document.onkeydown = this.hotkeyHandler;
+ document.onkeydown = () => { App.hotkeyHandler(event) };
Utils.setLoadingProgress(50);
notify("");
@@ -111,8 +111,11 @@ const App = {
console.log("unhandled action: " + action_name + "; keycode: " + event.which);
}
}
+ },
+ isPrefs: function() {
+ return true;
}
-}
+};
function notify_callback2(transport, sticky) {
notify_info(transport.responseText, sticky);
@@ -909,10 +912,6 @@ function labelColorReset() {
}
}
-function inPreferences() {
- return true;
-}
-
function editProfiles() {
if (dijit.byId("profileEditDlg"))