diff --git a/src/core/preload.cc b/src/core/preload.cc index f03150568a..1217b92755 100644 --- a/src/core/preload.cc +++ b/src/core/preload.cc @@ -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" );