third_party/subscriptions-project/swg.js
/**
   * Detects if the window is started from a Pay redirect by
   * checking window's hash for Web Activities information.
   */
Detects if the window is started from a Pay redirect by
checking window's hash for Web Activities information.
Detects if the window is started from a Pay redirect by checking window ' s hash for Web Activities information .
pageIsInitializedFromPayRedirect_() {
    const hash = this.win_.location.hash;
    const hasRedirectEncryptedCallbackData =
      /redirectEncryptedCallbackData/.test(hash);
    const hasSwgRequest = /swgRequest/.test(hash);
    return hasRedirectEncryptedCallbackData && hasSwgRequest;
  }
pageIsInitializedFromPayRedirect_ ( ) { const hash = this . win_ . location . hash ; const hasRedirectEncryptedCallbackData = / redirectEncryptedCallbackData / . test ( hash ) ; const hasSwgRequest = / swgRequest / . test ( hash ) ; return hasRedirectEncryptedCallbackData && hasSwgRequest ; }
Detects if the window is started from a Pay redirect by
 checking window's hash for Web Activities information.
Detects if the window is started from a Pay redirect by checking window ' s hash for Web Activities information .