Added pad shortcut disabling feature

This commit is contained in:
Brian Lim 2016-01-21 07:38:41 -05:00
parent 9335ae00d0
commit 26aeb7b705
4 changed files with 110 additions and 22 deletions

View file

@ -41,6 +41,12 @@ 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;