UNPKG

@capawesome/capacitor-background-task

Version:
25 lines (19 loc) 645 B
'use strict'; var core = require('@capacitor/core'); const BackgroundTask = core.registerPlugin('BackgroundTask', { web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BackgroundTaskWeb()), }); class BackgroundTaskWeb extends core.WebPlugin { beforeExit(_cb) { throw this.unimplemented('Not implemented on web.'); } finish(_options) { throw this.unimplemented('Not implemented on web.'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, BackgroundTaskWeb: BackgroundTaskWeb }); exports.BackgroundTask = BackgroundTask; //# sourceMappingURL=plugin.cjs.js.map