wrc-bridge
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -136,3 +136,2 @@ "use strict"; | ||
function subscribe(handlerName, handler) { | ||
var _this = this; | ||
if (WebViewBridge.messageHandlers[handlerName]) { | ||
@@ -146,3 +145,3 @@ throw new Error("Handler " + handlerName + " already registered"); | ||
return function () { | ||
delete _this.messageHandlers[handlerName]; | ||
delete WebViewBridge.messageHandlers[handlerName]; | ||
}; | ||
@@ -149,0 +148,0 @@ } |
{ | ||
"main": "build/index.js", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"name": "wrc-bridge", | ||
@@ -5,0 +5,0 @@ "scripts": { |
webview-bridge |
@@ -0,0 +0,0 @@ export interface RPCRequest { |
@@ -0,0 +0,0 @@ import { RPCError } from "./rpc"; |
@@ -161,3 +161,3 @@ import { | ||
return () => { | ||
delete this.messageHandlers[handlerName]; | ||
delete WebViewBridge.messageHandlers[handlerName]; | ||
}; | ||
@@ -164,0 +164,0 @@ } |
@@ -0,0 +0,0 @@ { |
41257
1142