@neurosity/sdk
Version:
Neurosity SDK
12 lines (11 loc) • 549 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWebBluetoothSupported = void 0;
const isMaybeWebWorkerContext_1 = require("./isMaybeWebWorkerContext");
function isWebBluetoothSupported() {
var _a;
return (typeof window !== "undefined" &&
((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.bluetooth) &&
!(0, isMaybeWebWorkerContext_1.isMaybeWebWorkerContext)());
}
exports.isWebBluetoothSupported = isWebBluetoothSupported;