Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Aug 25, 2021
1 parent a6c1fb4 commit 42fc2ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mono/wasm/runtime/binding_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ var BindingSupportLib = {
return Promise.resolve(js_obj) === js_obj ||
((typeof js_obj === "object" || typeof js_obj === "function") && typeof js_obj.then === "function")
};
this.isChromium = navigator && navigator.userAgent && navigator.userAgent.includes("Chrome");

this._empty_string = "";
this._empty_string_ptr = 0;
Expand Down Expand Up @@ -2047,7 +2048,7 @@ var BindingSupportLib = {
if (!obj)
throw new Error("ERR09: Invalid JS object handle for '"+sName+"'");

const prevent_timer_throttling = obj.constructor.name !== 'WebSocket' || !navigator.userAgent.includes("Chrome")
const prevent_timer_throttling = !BINDING.isChromium || obj.constructor.name !== 'WebSocket'
? null
: () => MONO.prevent_timer_throttling(0);

Expand Down

0 comments on commit 42fc2ea

Please sign in to comment.