Skip to content

Commit

Permalink
fix: disable debug logging
Browse files Browse the repository at this point in the history
event-bus, app-bridge
  • Loading branch information
ohrstrom committed May 22, 2023
1 parent cd364d6 commit 74c6d21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/app-bridge/appBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class AppBridge {
constructor() {
const { isWeb } = useDevice();
if (isWeb) {
log.debug("AppBridge - web mod detected: disable bridge");
// log.debug("AppBridge - web mod detected: disable bridge");
return;
}
log.debug("AppBridge - constructor");
Expand Down Expand Up @@ -135,9 +135,9 @@ class AppBridge {
}
// web > native - SEND payload TO swift-app channel
async send(channel: sendChannel, data?: object) {
if (channel !== "heartbeat") {
log.debug("AppBridge - send", channel, data);
}
// if (channel !== "heartbeat") {
// log.debug("AppBridge - send", channel, data);
// }
const message: SendMessage = {
c: channel,
};
Expand All @@ -153,8 +153,6 @@ class AppBridge {
} catch (e: unknown) {
// console.warn(channel, e);
}
} else {
log.debug("window.webkit not available");
}
}
// web < native - handle RECEIVED data FROM swift-app channel
Expand Down
2 changes: 1 addition & 1 deletion src/eventBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import mitt from "mitt";

const eventBus = mitt();

eventBus.on("*", (type, e) => console.log(type, e));
// eventBus.on("*", (type, e) => console.log(type, e));

// @ts-ignore
window.eventBus = eventBus;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const setDocumentPrimaryColor = (color: Array<number>) => {
const fg = getContrastColor(bg);
const fgInverse = getContrastColor(fg);
const { style } = document.body;
console.debug("colors", { bg, fg, fgInverse });
// console.debug("colors", { bg, fg, fgInverse });
style.setProperty("--c-live-bg", bg.join(" "));
style.setProperty("--c-live-fg", fg.join(" "));
style.setProperty("--c-live-fg-inverse", fgInverse.join(" "));
Expand Down

0 comments on commit 74c6d21

Please sign in to comment.