{:uriI"file:///Users/gavin/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/shopify_app-12.0.7/app/assets/javascripts/shopify_app/redirect.js?type=application/javascript&pipeline=self&id=d4599439c0ae39dd7435e55f4b67e6ffdded1ced6d56a5b8f88c5432625698fb:ET:load_pathI"n/Users/gavin/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/shopify_app-12.0.7/app/assets/javascripts;T: filenameI"/Users/gavin/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/shopify_app-12.0.7/app/assets/javascripts/shopify_app/redirect.js;T: nameI"shopify_app/redirect;T:logical_pathI"!shopify_app/redirect.self.js;T:content_typeI"application/javascript;T: sourceI"F(function() { function redirect() { var redirectTargetElement = document.getElementById("redirection-target"); if (!redirectTargetElement) { return; } 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.url; } else { // If the current window is the 'child', change the parent's URL with postMessage normalizedLink = document.createElement('a'); normalizedLink.href = targetInfo.url; data = JSON.stringify({ message: 'Shopify.API.remoteRedirect', data: {location: normalizedLink.href} }); window.parent.postMessage(data, targetInfo.myshopifyUrl); } } document.addEventListener("DOMContentLoaded", redirect); // In the turbolinks context, neither DOMContentLoaded nor turbolinks:load // consistently fires. This ensures that we at least attempt to fire in the // turbolinks situation as well. redirect(); })(); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/gavin/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/shopify_app-12.0.7/app/assets/javascripts/shopify_app/redirect.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI"shopify_app/redirect.js;TI" mappings;TI"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"redirect.source.js;TI" names;T[I"x_sprockets_linecount;Ti&: charsetI" utf-8;F: digest"%kf6YO_Z]Hne: lengthiF:environment_versionI"1.0-react-development;T:dependencies_digest"%FN# Xx?406OzM:idI"Ed4599439c0ae39dd7435e55f4b67e6ffdded1ced6d56a5b8f88c5432625698fb;F