Skip to content

Commit

Permalink
fix(src/core/preload.cc): fix reload on watch
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Oct 31, 2023
1 parent e220db4 commit 4bcd08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/preload.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace SSC {
opts.appData.at("webview_watch_reload") != "false"
) {
preload += (
" document.addEventListener('filedidchange', () => { \n"
" globalThis.addEventListener('filedidchange', () => { \n"
" location.reload() \n"
" }); \n"
);
Expand Down

0 comments on commit 4bcd08c

Please sign in to comment.