We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71bbcaf commit 31e7be6Copy full SHA for 31e7be6
src/js/utils/checkBrowserCompatibility.js
@@ -60,13 +60,17 @@ export function isCapacitorWeb() {
60
return false;
61
}
62
63
+export function isTauri() {
64
+ return "__TAURI_INTERNALS__" in window;
65
+}
66
+
67
export function checkBrowserCompatibility() {
68
const isWebSerial = checkWebSerialSupport();
69
const isWebBluetooth = checkWebBluetoothSupport();
70
const isWebUSB = checkWebUSBSupport();
71
const isChromium = isChromiumBrowser();
72
- const isNative = Capacitor.isNativePlatform();
73
+ const isNative = Capacitor.isNativePlatform() || isTauri();
74
75
const compatible = isNative || (isChromium && (isWebSerial || isWebBluetooth || isWebUSB));
76
0 commit comments