ruby_shopify_app 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/assets/javascripts/shopify_app/redirect.js +5 -8
- data/lib/ruby_shopify_app/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1c0b9278c1d143d0872ca501b2259cae0998c2cba5d7c6ebac4b58428a81b1
|
4
|
+
data.tar.gz: 7f9c04c736700f0e35d65af04949f8f56bcbc56611f2ddd61e796586808e4ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca8751b1d52328e68c609cba8184ae0ea035b74a0f27ab5c97a15cc01207cce6846ab5ae71db8510165e8651eb4abe16572c76642a5487cec1234276976f0e6
|
7
|
+
data.tar.gz: 13f1848f49f793540f6f3b670466be3b7f4d6e728499810e080088514c8244aa25053e24cc459a27be3e937a39da3f3122d371997c4d24fdd451774e813ea46b
|
data/CHANGELOG.md
CHANGED
@@ -10,15 +10,12 @@
|
|
10
10
|
|
11
11
|
var targetInfo = JSON.parse(redirectTargetElement.dataset.target);
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
} else {
|
17
|
-
// If the current window is the 'child' or embedded, change the parent's URL with
|
18
|
-
// App Bridge redirect. This case can happen when an app updates its access scopes,
|
19
|
-
// or the unlikely scenario where the shop thinks the app is installed, but the
|
20
|
-
// app does not have an record for the shop.
|
13
|
+
var appBridgeUtils = window['app-bridge']['utilities'];
|
14
|
+
|
15
|
+
if (appBridgeUtils.isShopifyEmbedded()) {
|
21
16
|
window.appBridgeRedirect(targetInfo.url);
|
17
|
+
} else {
|
18
|
+
window.top.location.href = targetInfo.url;
|
22
19
|
}
|
23
20
|
}
|
24
21
|
|