diff --git a/src/common.js b/src/common.js index c79e7dbf1..931e3b063 100644 --- a/src/common.js +++ b/src/common.js @@ -88,7 +88,7 @@ async function runKeyguard(RequestApiClass, opts) { // eslint-disable-line no-un // Back arrow functionality document.body.addEventListener('click', event => { - if (!(event.target instanceof HTMLElement && event.target.matches('a.page-header-back-button'))) return; + if (!(event.target instanceof HTMLElement) || !event.target.matches('a.page-header-back-button')) return; window.history.back(); });