@shopify/app-bridge
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.5](https://github.com/Shopify/app-bridge/compare/v2.0.4...v2.0.5) (2021-10-20) | ||
### Features | ||
* **unframed:** persist MobileWebView object across Android navigations ([0413a6f](https://github.com/Shopify/app-bridge/commit/0413a6f236b216af1498aa0e0db9ffb03c0209b5)) | ||
## [2.0.4](https://github.com/Shopify/app-bridge/compare/v2.0.4-alpha.5...v2.0.4) (2021-09-30) | ||
@@ -8,0 +19,0 @@ |
@@ -7,3 +7,5 @@ import type { AnyAction, ActionCallback, Unsubscribe } from './actions/types'; | ||
postMessage(message?: any): void; | ||
context?(): string; | ||
}; | ||
__context__?: string; | ||
} | ||
@@ -10,0 +12,0 @@ } |
@@ -9,2 +9,3 @@ "use strict"; | ||
var env_1 = require("./util/env"); | ||
var unframed_1 = require("./util/unframed"); | ||
var Context; | ||
@@ -98,10 +99,8 @@ (function (Context) { | ||
if (env_1.isUnframed && window && window.MobileWebView) { | ||
window.MobileWebView.postMessage({ | ||
message: 'unframed/handleMessage', | ||
data: { | ||
id: 'unframed://fromClient', | ||
origin: localOrigin, | ||
data: message, | ||
}, | ||
var payloadWithContext = unframed_1.parsePayloadWithContext({ | ||
id: 'unframed://fromClient', | ||
origin: localOrigin, | ||
data: message, | ||
}); | ||
window.MobileWebView.postMessage(payloadWithContext); | ||
return; | ||
@@ -108,0 +107,0 @@ } |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"types": "index.d.ts", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "21bc906b981d42cc22a872ea9e48f291cc95ed87" | ||
"gitHead": "34f24f749cde5eeb742adf968895fc75a9b5391a" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
861925
166
18201