Skip to content

Commit

Permalink
Fix compatibility check in wasm website
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Aug 27, 2023
1 parent 3403161 commit c1c8484
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/web/web/compatibility.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ void main() async {
try {
final db = await WasmDatabase.open(
databaseName: 'test_db',
sqlite3Uri: Uri.parse('sqlite3.wasm'),
driftWorkerUri: Uri.parse('drift_worker.dart.js'),
// These URLs need to be absolute because we're serving this JS file
// under `/web`.
sqlite3Uri: Uri.parse('/sqlite3.wasm'),
driftWorkerUri: Uri.parse('/drift_worker.dart.js'),
);

results.innerText += '''
Expand Down

0 comments on commit c1c8484

Please sign in to comment.