Sha256: e3eeff58ecffabf200c97bb9a03b48bc7fa81a0f928ed8b4340f90180b2c9f41

Contents?: true

Size: 578 Bytes

Versions: 104

Compression:

Stored size: 578 Bytes

Contents

(function() {
  function redirect() {
    var redirectTargetElement = document.getElementById("redirection-target");

    var targetInfo = JSON.parse(redirectTargetElement.dataset.target)

    if (window.top == window.self) {
      // If the current window is the 'parent', change the URL by setting location.href
      window.top.location.href = targetInfo.hasStorageAccessUrl;
    } else {
        var storageAccessHelper = new StorageAccessHelper(targetInfo);
        storageAccessHelper.execute();
    }
  }

  document.addEventListener("DOMContentLoaded", redirect);
})();

Version data entries

104 entries across 104 versions & 3 rubygems

Version Path
ruby_shopify_app-1.3.3 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.3.2 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.3.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.3.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.2.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.1.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
ruby_shopify_app-1.0.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.3.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.3.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.2.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.1.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.1.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-21.0.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.2.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.1.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.1.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.0.2 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.0.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-20.0.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-19.1.0 app/assets/javascripts/shopify_app/storage_access_redirect.js