diff options
author | Luiza Pagliari <lpagliari@gmail.com> | 2017-05-11 12:26:14 -0300 |
---|---|---|
committer | Luiza Pagliari <lpagliari@gmail.com> | 2017-05-11 12:26:14 -0300 |
commit | cf686282ef69ba75ca4a9f9226fcbdd5a0698076 (patch) | |
tree | 38451e710e934a13de570a23d61897038b11ce1f /src/node/hooks/express | |
parent | 1ebcf0dc470985ddc4357b0ac54e886116dfa3df (diff) | |
download | etherpad-lite-cf686282ef69ba75ca4a9f9226fcbdd5a0698076.zip |
Do not use cookie for pad shortcuts
Users still cannot choose which shortcuts they want to enable/disable,
so it does not make sense (yet) to have a cookie with that preference.
This can be reverted once we create an UI to change shortcuts, but
PLEASE PLEASE PLEASE do not read the cookie every time handleKeyEvent is
called!!!
This is an adjustment to #2891.
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r-- | src/node/hooks/express/specialpages.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js index e933a05a..2840f82c 100644 --- a/src/node/hooks/express/specialpages.js +++ b/src/node/hooks/express/specialpages.js @@ -48,12 +48,6 @@ exports.expressCreateServer = function (hook_name, args, cb) { res.cookie('language', settings.padOptions.lang); } - // Enable the pad shortcut keys from settings.json - if (settings.padShortcutEnabled !== undefined) - { - res.cookie('padShortcutEnabled', JSON.stringify(settings.padShortcutEnabled)); - } - // The below might break for pads being rewritten var isReadOnly = req.url.indexOf("/p/r.") === 0; |