capacitor-vpn-detector
Version:
Capacitor plugin to detect VPN connections on Android and iOS.
25 lines (18 loc) • 687 B
JavaScript
var capacitorVpnDetectorPlugin = (function (exports, core) {
'use strict';
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;
return exports;
})({}, capacitorExports);
//# sourceMappingURL=plugin.js.map