mirror of https://github.com/AMT-Cheif/drift.git
Fix compatibility check in wasm website
This commit is contained in:
parent
3403161178
commit
c1c848465a
|
@ -18,8 +18,10 @@ void main() async {
|
||||||
try {
|
try {
|
||||||
final db = await WasmDatabase.open(
|
final db = await WasmDatabase.open(
|
||||||
databaseName: 'test_db',
|
databaseName: 'test_db',
|
||||||
sqlite3Uri: Uri.parse('sqlite3.wasm'),
|
// These URLs need to be absolute because we're serving this JS file
|
||||||
driftWorkerUri: Uri.parse('drift_worker.dart.js'),
|
// under `/web`.
|
||||||
|
sqlite3Uri: Uri.parse('/sqlite3.wasm'),
|
||||||
|
driftWorkerUri: Uri.parse('/drift_worker.dart.js'),
|
||||||
);
|
);
|
||||||
|
|
||||||
results.innerText += '''
|
results.innerText += '''
|
||||||
|
|
Loading…
Reference in New Issue