diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index ff3d869..8535984 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -591,11 +591,10 @@ export default { this.logScanDebug('attach-listener-start', { hasWindow, hasDocument }) const targets = [] - if (hasWindow) { - targets.push(window) - } if (hasDocument) { targets.push(document) + } else if (hasWindow) { + targets.push(window) } if (!targets.length) { this.logScanDebug('attach-listener-failed', { reason: 'no-window-or-document' })