web-request-rpc
Advanced tools
+5
-0
| # web-request-rpc ChangeLog | ||
| ## 1.1.8 - 2022-06-13 | ||
| ### Fixed | ||
| - Fix `window.opener` / `window.parent` reversal bug. | ||
| ## 1.1.7 - 2021-01-22 | ||
@@ -4,0 +9,0 @@ |
+2
-2
@@ -30,3 +30,3 @@ /*! | ||
| * a handle) to send messages to | ||
| * (defaults to `window.parent || window.opener`). | ||
| * (defaults to `window.opener || window.parent`). | ||
| * | ||
@@ -45,3 +45,3 @@ * @return a Promise that resolves to an RPC injector once connected. | ||
| self.origin = utils.parseUrl(origin).origin; | ||
| self._handle = options.handle || window.parent || window.opener; | ||
| self._handle = options.handle || window.opener || window.parent; | ||
@@ -48,0 +48,0 @@ const pending = self._pending; |
+1
-1
| { | ||
| "name": "web-request-rpc", | ||
| "version": "1.1.7", | ||
| "version": "1.1.8", | ||
| "description": "Web Request RPC", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+2
-2
@@ -53,3 +53,3 @@ /*! | ||
| * a handle) to listen for messages from | ||
| * (defaults to `window.parent || window.opener`). | ||
| * (defaults to `window.opener || window.parent`). | ||
| * [ignoreUnknownApi] `true` to ignore unknown API messages. | ||
@@ -67,3 +67,3 @@ */ | ||
| self.origin = utils.parseUrl(origin).origin; | ||
| self._handle = options.handle || window.parent || window.opener; | ||
| self._handle = options.handle || window.opener || window.parent; | ||
@@ -70,0 +70,0 @@ const ignoreUnknownApi = (options.ignoreUnknownApi === 'true') || false; |
37670
0.23%