UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

26 lines 778 B
import { WebPlugin } from '@capacitor/core'; export class AppWeb extends WebPlugin { constructor() { super(); this.handleVisibilityChange = () => { const data = { isActive: document.hidden !== true, }; this.notifyListeners('appStateChange', data); }; document.addEventListener('visibilitychange', this.handleVisibilityChange, false); } exitApp() { throw this.unimplemented('Not implemented on web.'); } async getInfo() { throw this.unimplemented('Not implemented on web.'); } async getLaunchUrl() { return { url: '' }; } async getState() { return { isActive: document.hidden !== true }; } } //# sourceMappingURL=web.js.map