lib/generators/wasmify/pwa/templates/pwa/rails.sw.js in wasmify-rails-0.1.0 vs lib/generators/wasmify/pwa/templates/pwa/rails.sw.js in wasmify-rails-0.1.1
- old
+ new
@@ -10,12 +10,12 @@
let db = null;
const initDB = async (progress) => {
if (db) return db;
- progress.updateStep("Initializing SQLite database...");
+ progress?.updateStep("Initializing SQLite database...");
db = await setupSQLiteDatabase();
- progress.updateStep("SQLite database created.");
+ progress?.updateStep("SQLite database created.");
};
let vm = null;
const initVM = async (progress, opts = {}) => {