Sha256: 25e2867f0b1a14a7f1b3fb580c58fc7246803f17562df9a6ec65f794b3dce117
Contents?: true
Size: 595 Bytes
Versions: 10
Compression:
Stored size: 595 Bytes
Contents
//= require ./app_bridge_3.7.8.js (function(window) { function appBridgeRedirect(url) { var AppBridge = window['app-bridge']; var createApp = AppBridge.default; var Redirect = AppBridge.actions.Redirect; var shopifyData = document.body.dataset; var app = createApp({ apiKey: shopifyData.apiKey, host: shopifyData.host, }); var normalizedLink = document.createElement('a'); normalizedLink.href = url; Redirect.create(app).dispatch(Redirect.Action.REMOTE, normalizedLink.href); } window.appBridgeRedirect = appBridgeRedirect; })(window);
Version data entries
10 entries across 10 versions & 1 rubygems