Fix nightly CI (#3526)

This commit is contained in:
daxpedda 2024-02-26 09:46:12 +01:00 committed by GitHub
parent 352e70b8ac
commit 010787a430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 6 deletions

View file

@ -83,7 +83,7 @@ pub fn exit_fullscreen(document: &Document, canvas: &HtmlCanvasElement) {
fn has_fullscreen_api_support(canvas: &HtmlCanvasElement) -> bool {
thread_local! {
static FULLSCREEN_API_SUPPORT: OnceCell<bool> = OnceCell::new();
static FULLSCREEN_API_SUPPORT: OnceCell<bool> = const { OnceCell::new() };
}
FULLSCREEN_API_SUPPORT.with(|support| {