diff options
Diffstat (limited to 'p/scripts/main.js')
| -rw-r--r-- | p/scripts/main.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 3e825ff96..4566a1141 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1033,11 +1033,6 @@ function init_column_categories() { function init_shortcuts() { Object.keys(context.shortcuts).forEach(function (k) { context.shortcuts[k] = (context.shortcuts[k] || '').toUpperCase(); - if (context.shortcuts[k].indexOf('&') >= 0) { - // Decode potential HTML entities <'&"> - const parser = new DOMParser(); - context.shortcuts[k] = parser.parseFromString(context.shortcuts[k], 'text/html').documentElement.textContent; - } }); document.addEventListener('keydown', ev => { @@ -1156,7 +1151,7 @@ function init_shortcuts() { return; } if (ev.key === '?') { - window.location.href = context.urls.shortcuts.replace(/&/g, '&'); + window.location.href = context.urls.shortcuts; return; } |
