diff --git a/src/api/basic-subscriptions.js b/src/api/basic-subscriptions.js index 57adcb8a9d..fd1f34bdd0 100644 --- a/src/api/basic-subscriptions.js +++ b/src/api/basic-subscriptions.js @@ -56,10 +56,9 @@ export class BasicSubscriptions { /** * Open CheckEntitlementsView to let users log in Google and check their entitlements. - * @param {function(!LoginRequest)} callback * @return {?} */ - setOnLoginRequest(callback) {} + setOnLoginRequest() {} /** * Creates and displays a SwG subscription or contribution prompt, where the @@ -106,13 +105,6 @@ export const AutoPromptType = { */ export let ClientOptions; -/** - * @typedef {{ - * linkRequested: boolean, - * }} - */ -export let LoginRequest; - /** @enum {string} */ export const ClientTheme = { LIGHT: 'light', diff --git a/src/runtime/basic-runtime.js b/src/runtime/basic-runtime.js index 80bee5ce5a..c2e9ca35f9 100644 --- a/src/runtime/basic-runtime.js +++ b/src/runtime/basic-runtime.js @@ -198,6 +198,7 @@ export class BasicRuntime { autoPromptType: params.autoPromptType, alwaysShow: false, }); + this.setOnLoginRequest(); } /* eslint-enable no-unused-vars */ @@ -216,9 +217,9 @@ export class BasicRuntime { } /** @override */ - setOnLoginRequest(callback) { + setOnLoginRequest() { return this.configured_(false).then((runtime) => - runtime.setOnLoginRequest(callback) + runtime.setOnLoginRequest() ); } @@ -394,7 +395,7 @@ export class ConfiguredBasicRuntime { } /** @override */ - setOnLoginRequest(unusedCallback) { + setOnLoginRequest() { const runtime = this.configuredClassicRuntime_; const args = feArgs({ 'publicationId': runtime.pageConfig().getPublicationId(),