From c1c848465ac8a216e68e8b67d2fe435cec0a210e Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sun, 27 Aug 2023 16:29:55 +0200 Subject: [PATCH] Fix compatibility check in wasm website --- docs/web/web/compatibility.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/web/web/compatibility.dart b/docs/web/web/compatibility.dart index afb8a910..9260b261 100644 --- a/docs/web/web/compatibility.dart +++ b/docs/web/web/compatibility.dart @@ -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 += '''