From d4e13ec503f3e4b19eca695f57f663e65be1307b Mon Sep 17 00:00:00 2001 From: zk-wz Date: Mon, 18 May 2026 23:39:16 +0800 Subject: [PATCH] Replace top-level await with then() in browser.js --- core/util/browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/util/browser.js b/core/util/browser.js index 12f47a76..4eba4659 100644 --- a/core/util/browser.js +++ b/core/util/browser.js @@ -182,7 +182,10 @@ async function _checkWebCodecsH264DecodeSupport() { return true; } -supportsWebCodecsH264Decode = await _checkWebCodecsH264DecodeSupport(); + +_checkWebCodecsH264DecodeSupport().then(result => { + supportsWebCodecsH264Decode = result; +}); /* * The functions for detection of platforms and browsers below are exported