Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 05225c1

Browse files
committed
Split the initialization the _flutter namespace and the loader object.
1 parent e099277 commit 05225c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/web_ui/flutter_js/src/flutter.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
import { FlutterLoader } from './loader.js';
66

77
if (!window._flutter) {
8-
window._flutter = {
9-
loader: new FlutterLoader()
10-
};
8+
window._flutter = {};
9+
}
10+
11+
if (!window._flutter.loader) {
12+
window._flutter.loader = new FlutterLoader();
1113
}

0 commit comments

Comments
 (0)