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
shopify_app-8.5.0 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-8.4.2 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-8.4.1 app/assets/javascripts/shopify_app/storage_access_redirect.js
shopify_app-8.4.0 app/assets/javascripts/shopify_app/storage_access_redirect.js