We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f49e973 commit 6e96780Copy full SHA for 6e96780
src/js/utils/checkBrowserCompatibilty.js
@@ -34,9 +34,13 @@ export function isCapacitorWeb() {
34
return false;
35
}
36
37
+export function isTauri() {
38
+ return "__TAURI_INTERNALS__" in window;
39
+}
40
+
41
export function checkBrowserCompatibility() {
42
const webSerial = "serial" in navigator;
- const isNative = Capacitor.isNativePlatform();
43
+ const isNative = Capacitor.isNativePlatform() || isTauri();
44
const isChromium = isChromiumBrowser();
45
46
const compatible = isNative || (webSerial && isChromium);
0 commit comments