diff --git a/src/compile/render-dom/wrappers/Window.ts b/src/compile/render-dom/wrappers/Window.ts index e4f354eaa7..2b58153d95 100644 --- a/src/compile/render-dom/wrappers/Window.ts +++ b/src/compile/render-dom/wrappers/Window.ts @@ -182,6 +182,8 @@ export default class WindowWrapper extends Wrapper { `@listen(window, "online", ctx.${handler_name})`, `@listen(window, "offline", ctx.${handler_name})` ); + + component.has_reactive_assignments = true; } } } diff --git a/test/js/samples/bind-online/expected.js b/test/js/samples/bind-online/expected.js index e82ef6900a..fa38562412 100644 --- a/test/js/samples/bind-online/expected.js +++ b/test/js/samples/bind-online/expected.js @@ -33,7 +33,7 @@ function create_fragment(ctx) { }; } -function instance($$self) { +function instance($$self, $$props, $$invalidate) { let online; function onlinestatuschanged() {