UNPKG

muspe-cli

Version:

MusPE Advanced Framework v2.1.3 - Mobile User-friendly Simple Progressive Engine with Enhanced CLI Tools, Specialized E-Commerce Templates, Material Design 3, Progressive Enhancement, Mobile Optimizations, Performance Analysis, and Enterprise-Grade Develo

35 lines (30 loc) 769 B
// MusPE Cordova Utilities class MusPECordova { constructor() { this.isReady = false; this.readyCallbacks = []; this.plugins = {}; this.init(); } isCordova() { return cp /Users/dexterbanastao/Documents/GitHub/muspe/src/utils/dom.js /tmp/test-cordova/src/utils/cordova.js(window.cordova || window.PhoneGap || window.phonegap); } ready(callback) { if (this.isReady) { callback(); } else { this.readyCallbacks.push(callback); } return this; } getDeviceInfo() { return { platform: 'browser', model: 'browser' }; } getNetworkInfo() { return { isOnline: navigator.onLine }; } } // Create global instance if (typeof window !== 'undefined') { window.MusPECordova = new MusPECordova(); }