Replace top-level await with then() in browser.js
This commit is contained in:
parent
8e1ebdffba
commit
d4e13ec503
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue