otter-bridge
Advanced tools
Comparing version
@@ -10,3 +10,3 @@ declare class BridgeHandlers { | ||
constructor(gameType?: string); | ||
nativeBack(): void; | ||
nativeBack(): Promise<any>; | ||
getToken(): Promise<any>; | ||
@@ -13,0 +13,0 @@ bizRequest(params?: any): Promise<any>; |
@@ -77,3 +77,7 @@ "use strict"; | ||
nativeBack() { | ||
OtterBridge.instance.callHandler(_BridgeHandlers.HANDLER_ENUM.nativeBack); | ||
return __async(this, null, function* () { | ||
return yield OtterBridge.instance.callHandler( | ||
_BridgeHandlers.HANDLER_ENUM.nativeBack | ||
); | ||
}); | ||
} | ||
@@ -80,0 +84,0 @@ getToken() { |
{ | ||
"name": "otter-bridge", | ||
"version": "0.0.2", | ||
"version": "0.0.3-alpha.0", | ||
"description": "Otter game web jsbridge", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -36,4 +36,6 @@ import Env from "./env"; | ||
nativeBack() { | ||
OtterBridge.instance.callHandler(BridgeHandlers.HANDLER_ENUM.nativeBack); | ||
async nativeBack() { | ||
return await OtterBridge.instance.callHandler( | ||
BridgeHandlers.HANDLER_ENUM.nativeBack, | ||
); | ||
} | ||
@@ -40,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14774
2.47%284
3.65%