Skip to content

Commit bacfbe7

Browse files
committed
save a couple bytes
1 parent 21f8a12 commit bacfbe7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ export async function start(_app, _target, hydrate) {
266266
}
267267

268268
app = _app;
269-
if (app.hooks.init != null) {
270-
await app.hooks.init();
271-
}
269+
270+
await _app.hooks.init?.();
271+
272272
routes = parse(_app);
273273
container = __SVELTEKIT_EMBEDDED__ ? _target : document.documentElement;
274274
target = _target;

0 commit comments

Comments
 (0)