Make iOS "safe area" respect dark mode (#2053)

This commit is contained in:
Thomas Steiner 2020-08-20 13:20:13 +02:00 committed by GitHub
parent aac83325c5
commit 80cbe13167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -724,7 +724,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
});
}
document.body.classList.toggle(
document.documentElement.classList.toggle(
"Appearance_dark",
this.state.appearance === "dark",
);