otter-bridge
Advanced tools
Comparing version
@@ -17,2 +17,3 @@ declare enum GameType { | ||
showAd: string; | ||
openAppPage: string; | ||
}; | ||
@@ -24,2 +25,3 @@ private _gameName; | ||
openUrl(url: string, params?: any): Promise<any>; | ||
openAppPage(url: string): Promise<any>; | ||
share(): Promise<any>; | ||
@@ -26,0 +28,0 @@ getSid(): Promise<string>; |
@@ -111,2 +111,10 @@ "use strict"; | ||
} | ||
openAppPage(url) { | ||
return __async(this, null, function* () { | ||
return yield OtterBridge.instance.callHandler( | ||
_BridgeHandler.HANDLER_ENUM.openAppPage, | ||
{ url } | ||
); | ||
}); | ||
} | ||
share() { | ||
@@ -182,3 +190,4 @@ return __async(this, null, function* () { | ||
checkAdStatus: "checkAdStatus", | ||
showAd: "showAd" | ||
showAd: "showAd", | ||
openAppPage: "openAppPage" | ||
}; | ||
@@ -185,0 +194,0 @@ var BridgeHandler = _BridgeHandler; |
{ | ||
"name": "otter-bridge", | ||
"version": "0.0.3-alpha.4", | ||
"version": "0.0.3-alpha.5", | ||
"description": "Otter game web jsbridge", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -39,2 +39,3 @@ import URI from "urijs"; | ||
showAd: "showAd", | ||
openAppPage: 'openAppPage' | ||
}; | ||
@@ -68,2 +69,9 @@ | ||
async openAppPage(url: string) { | ||
return await OtterBridge.instance.callHandler( | ||
BridgeHandler.HANDLER_ENUM.openAppPage, | ||
{ url: url }, | ||
); | ||
} | ||
async share() { | ||
@@ -70,0 +78,0 @@ return await OtterBridge.instance.callHandler( |
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
28114
5.58%524
5.43%