otter-bridge
Advanced tools
Comparing version 0.1.0-beta.1 to 0.1.0-beta.2
@@ -100,4 +100,9 @@ "use strict"; | ||
return __async(this, arguments, function* (handlerName, params = {}) { | ||
var _a; | ||
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(); | ||
@@ -104,0 +109,0 @@ console.log("bridgeInit", envRes); |
{ | ||
"name": "otter-bridge", | ||
"version": "0.1.0-beta.1", | ||
"version": "0.1.0-beta.2", | ||
"description": "Otter game web jsbridge", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -48,2 +48,6 @@ import URI from "urijs"; | ||
try { | ||
if (navigator.userAgent?.indexOf("OtterGamePlatform") < 0) { | ||
console.error("Not in Otter Game Platform App"); | ||
return false; | ||
} | ||
const envRes = await this._waitForEnvReady(); | ||
@@ -50,0 +54,0 @@ console.log("bridgeInit", envRes); |
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
56081
1036