Skip to content

Commit 78b8c8e

Browse files
committed
Use function not object
1 parent 3fda9fe commit 78b8c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/serial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Serial extends EventTarget {
3434
*/
3535
async init() {
3636
// Dynamically include the native Tauri serial adapter so web builds don't try to resolve it.
37-
if (isTauri) {
37+
if (isTauri()) {
3838
try {
3939
const { default: TauriSerial } = await import("./protocols/TauriSerial.js");
4040
const inst = new TauriSerial();

0 commit comments

Comments
 (0)