Skip to content

Commit

Permalink
fix(core): document may is null in devtools not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Aug 11, 2023
1 parent fd2033c commit 5d708e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/eval-logs/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sentinel.on('iframe', async (devtools: HTMLIFrameElement) => {
elBridgeC.on('update:localStorage', ([key, value]) => {
if (key === 'uiTheme' && uiTheme !== value) {
// TODO Setting page select value is wrong
const html = devtoolsDocument.querySelector('html')!
const html = devtools.contentDocument!.querySelector('html')!
if (value === 'dark') {
html.classList.add('-theme-with-dark-background')
}
Expand Down

0 comments on commit 5d708e0

Please sign in to comment.