UNPKG

capacitor-vpn-detector

Version:

Capacitor plugin to detect VPN connections on Android and iOS.

22 lines (16 loc) 566 B
'use strict'; var core = require('@capacitor/core'); const VpnDetector = core.registerPlugin('VpnDetectorPlugin', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.VpnDetectorWeb()), }); class VpnDetectorWeb extends core.WebPlugin { async isVpnActive() { throw this.unimplemented('VPN detection is not available on web platform'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, VpnDetectorWeb: VpnDetectorWeb }); exports.VpnDetector = VpnDetector; //# sourceMappingURL=plugin.cjs.js.map