forked from jsnbuchanan/crowd-funder-for-time-pwa
# Commit Message for SharedArrayBuffer Platform Exclusion
fix: eliminate SharedArrayBuffer checks on non-web platforms * Add platform guard in AbsurdSqlDatabaseService to only initialize on web * Change singleton pattern from eager to lazy instantiation * Update worker import to use lazy singleton pattern * Prevents absurd-sql initialization on Electron/Capacitor platforms * Reduces console noise and memory footprint on desktop/mobile * Maintains full web platform functionality and performance Resolves SharedArrayBuffer-related console output on Electron platform while preserving all web features and maintaining clean architecture.
This commit is contained in:
@@ -45,6 +45,25 @@ export interface PlatformService {
|
||||
*/
|
||||
getCapabilities(): PlatformCapabilities;
|
||||
|
||||
// Platform detection methods
|
||||
/**
|
||||
* Checks if running on Capacitor platform.
|
||||
* @returns true if running on Capacitor, false otherwise
|
||||
*/
|
||||
isCapacitor(): boolean;
|
||||
|
||||
/**
|
||||
* Checks if running on Electron platform.
|
||||
* @returns true if running on Electron, false otherwise
|
||||
*/
|
||||
isElectron(): boolean;
|
||||
|
||||
/**
|
||||
* Checks if running on web platform.
|
||||
* @returns true if running on web, false otherwise
|
||||
*/
|
||||
isWeb(): boolean;
|
||||
|
||||
// File system operations
|
||||
/**
|
||||
* Reads the contents of a file at the specified path.
|
||||
|
||||
Reference in New Issue
Block a user