Sha256: 372088594c1ea2d19627ae6e232c6c45dc80951a022f57ddae4bf9e19c030ef1
Contents?: true
Size: 594 Bytes
Versions: 16
Compression:
Stored size: 594 Bytes
Contents
//= require ./app_bridge_3.1.1.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
16 entries across 16 versions & 1 rubygems