Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix color scheme observer crashes in Safari #249

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented Aug 5, 2020

Resolve #245. Turns out matchMediaDarkScheme object doesn't have addEventListener, but only addListener in Safari 13.1.2. IDK why this wasn't reproduced elsewhere, maybe it was changed in Safari minor version that you don't have yet? ¯\_(ツ)_/¯

@MaxDesiatov MaxDesiatov added the bug Something isn't working label Aug 5, 2020
@j-f1
Copy link
Member

j-f1 commented Aug 5, 2020

It’s probably because I’m using Safari Technology Preview (Release 110, Safari 14.0, WebKit 15610.1.21.0.2).

@MaxDesiatov
Copy link
Collaborator Author

Huh, I thought that Safari TP is completely broken because of swiftwasm/carton#25

@j-f1
Copy link
Member

j-f1 commented Aug 5, 2020

Yeah, I’m using a local override on dev.js to run delete BigInt; before everything else.

@carson-katri
Copy link
Member

I'm also using that override to use Safari on Big Sur.

@MaxDesiatov MaxDesiatov merged commit de37894 into main Aug 5, 2020
@MaxDesiatov MaxDesiatov deleted the colorscheme-addlistener branch August 5, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Dark mode detection causes crashes in Safari
3 participants