Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m50s

This commit is contained in:
eewing
2026-02-17 14:58:53 -06:00
parent cff20a652a
commit 9022114c8d
2137 changed files with 201996 additions and 762 deletions
+24
View File
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canEnumerateDevices = exports.hasNavigator = void 0;
/**
* If navigator is present.
*/
function hasNavigator() {
return typeof navigator !== 'undefined';
}
exports.hasNavigator = hasNavigator;
/**
* If mediaDevices under navigator is supported.
*/
function isMediaDevicesSupported() {
return hasNavigator() && !!navigator.mediaDevices;
}
/**
* If enumerateDevices under navigator is supported.
*/
function canEnumerateDevices() {
return !!(isMediaDevicesSupported() && navigator.mediaDevices.enumerateDevices);
}
exports.canEnumerateDevices = canEnumerateDevices;
//# sourceMappingURL=navigator-utils.js.map