otter-bridge
Advanced tools
Comparing version 0.1.0-beta.3 to 0.1.0-beta.4
@@ -102,12 +102,7 @@ "use strict"; | ||
if (!this.valid) { | ||
try { | ||
if (((_a = navigator.userAgent) == null ? void 0 : _a.indexOf("OtterGamePlatform")) < 0) { | ||
console.error("Not in Otter Game Platform App"); | ||
return false; | ||
} | ||
const envRes = yield this._waitForEnvReady(); | ||
console.log("bridgeInit", envRes); | ||
} catch (e) { | ||
throw e; | ||
if (((_a = navigator.userAgent) == null ? void 0 : _a.indexOf("OtterGamePlatform")) < 0) { | ||
throw "Not in Otter Game Platform App"; | ||
} | ||
const envRes = yield this._waitForEnvReady(); | ||
console.log("bridgeInit", envRes); | ||
} | ||
@@ -114,0 +109,0 @@ return yield window.flutter_inappwebview.callHandler( |
{ | ||
"name": "otter-bridge", | ||
"version": "0.1.0-beta.3", | ||
"version": "0.1.0-beta.4", | ||
"description": "Otter game web jsbridge", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
55394
1021