Fix compatibility check in wasm website

This commit is contained in:
Simon Binder 2023-08-27 16:29:55 +02:00
parent 3403161178
commit c1c848465a
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 4 additions and 2 deletions

View File

@ -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 += '''