When trying to run livesync-bridge using command deno run -A main.ts, i get this error:
error: Uncaught (in promise) ReferenceError: window is not defined
export const btoa = (window && window.btoa) ? window.btoa : btoa_node;
^
at file:///path/to/livesync-bridge/lib/src/strbin.ts:53:21
info: window global is not available in Deno 2.
hint: Replace `window` with `globalThis`.
When trying to run livesync-bridge using command
deno run -A main.ts, i get this error: