Skip to content

Commit

Permalink
Merge pull request #104 from GetStream/fix/web-build
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x authored Jan 13, 2025
2 parents 9052b19 + 420cd7a commit 7d9f61e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
with:
channel: stable
cache: true
# https://github.com/flutter/flutter/issues/160127
flutter-version: 3.24.5

- name: Copy production config
run: echo "${{ secrets.PRODUCTION_CONFIG }}" > lib/app_config.dart
Expand Down
19 changes: 1 addition & 18 deletions packages/stream_chat_v1/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,12 @@
<title>Stream Chat V1</title>
<link rel="manifest" href="manifest.json">

<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script defer src="flutter.js"></script>
<script defer src="sql-wasm.js"></script>
</head>
<body>
<script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function(engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function(appRunner) {
return appRunner.runApp();
});
});
</script>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>

0 comments on commit 7d9f61e

Please sign in to comment.