Replace top-level await with then() in browser.js

This commit is contained in:
zk-wz 2026-05-18 23:39:16 +08:00
parent 8e1ebdffba
commit d4e13ec503
1 changed files with 4 additions and 1 deletions

View File

@ -182,7 +182,10 @@ async function _checkWebCodecsH264DecodeSupport() {
return true; return true;
} }
supportsWebCodecsH264Decode = await _checkWebCodecsH264DecodeSupport();
_checkWebCodecsH264DecodeSupport().then(result => {
supportsWebCodecsH264Decode = result;
});
/* /*
* The functions for detection of platforms and browsers below are exported * The functions for detection of platforms and browsers below are exported