Skip to content

Commit

Permalink
Fix download URL for web
Browse files Browse the repository at this point in the history
Fixes: #28
  • Loading branch information
Martin Clauss committed Mar 24, 2024
1 parent b4c5443 commit 476040b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/isar/lib/src/web/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export 'interop.dart';
FutureOr<IsarCoreBindings> initializePlatformBindings([
String? library,
]) async {
final url = library ?? 'https://unpkg.com/isar@${Isar.version}/isar.wasm';
final url = library ?? 'https://github.com/isar-community/isar/releases/download/@${Isar.version}/isar.wasm';
final w = window as JSWindow;
final promise = w.WebAssembly.instantiateStreaming(
w.fetch(url),
Expand Down

0 comments on commit 476040b

Please sign in to comment.