forked from trent_larson/crowd-funder-for-time-pwa
WIP: disabling absurd-sql when using Capacitor SQLite
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
// @ts-expect-error but not sure why it's not in there
|
||||
import { initBackend } from "absurd-sql/dist/indexeddb-main-thread";
|
||||
import { initializeApp } from "./main.common";
|
||||
import "./registerServiceWorker"; // Web PWA support
|
||||
|
||||
// Only import service worker for web builds
|
||||
if (process.env.VITE_PLATFORM !== 'electron' && process.env.VITE_PWA_ENABLED === 'true') {
|
||||
import("./registerServiceWorker"); // Web PWA support
|
||||
}
|
||||
|
||||
const app = initializeApp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user