diff --git a/dist/autofill.js b/dist/autofill.js index 2836981cf..32e55ce63 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -262,7 +262,12 @@ class AndroidInterface extends InterfacePrototype { alias }) => alias); - this.isDeviceSignedIn = () => window.EmailInterface.isSignedIn() === 'true'; + this.isDeviceSignedIn = () => { + // isDeviceSignedIn is only available on DDG domains... + if (isDDGDomain()) return window.EmailInterface.isSignedIn() === 'true'; // ...on other domains we assume true because the script wouldn't exist otherwise + + return true; + }; this.setupAutofill = ({ shouldLog diff --git a/src/DeviceInterface.js b/src/DeviceInterface.js index c8dcfaa5d..fec27d2d9 100644 --- a/src/DeviceInterface.js +++ b/src/DeviceInterface.js @@ -196,7 +196,13 @@ class AndroidInterface extends InterfacePrototype { window.EmailInterface.showTooltip(), 'getAliasResponse') .then(({alias}) => alias) - this.isDeviceSignedIn = () => window.EmailInterface.isSignedIn() === 'true' + this.isDeviceSignedIn = () => { + // isDeviceSignedIn is only available on DDG domains... + if (isDDGDomain()) return window.EmailInterface.isSignedIn() === 'true' + + // ...on other domains we assume true because the script wouldn't exist otherwise + return true + } this.setupAutofill = ({shouldLog} = {shouldLog: false}) => { if (this.isDeviceSignedIn()) {