Skip to content

Commit 6de4e92

Browse files
committed
Silence Capacitor debug logging
1 parent 385c07b commit 6de4e92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/js/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ import { updateTabList } from "./utils/updateTabList.js";
1616
import { mountVueTab } from "./vue_tab_mounter.js";
1717
import * as THREE from "three";
1818
import NotificationManager from "./utils/notifications.js";
19+
import { Capacitor } from "@capacitor/core";
20+
21+
// Silence Capacitor bridge debug spam on native platforms
22+
if (Capacitor?.isNativePlatform?.() && typeof Capacitor.isLoggingEnabled === "boolean") {
23+
Capacitor.isLoggingEnabled = false;
24+
}
1925

2026
import("./msp/debug/msp_debug_tools.js")
2127
.then(() => {

0 commit comments

Comments
 (0)