@forge/bridge

5.15.1-next.45.15.1-next.5
out/bridge.js
~out/bridge.jsModified
+2−2
Index: package/out/bridge.js
===================================================================
--- package/out/bridge.js
+++ package/out/bridge.js
@@ -5,13 +5,13 @@
 function isBridgeAvailable(bridge) {
     return !!(bridge === null || bridge === void 0 ? void 0 : bridge.callBridge);
 }
 const getCallBridge = () => {
-    if (!isBridgeAvailable(window.__bridge)) {
+    if (!isBridgeAvailable(globalThis.__bridge)) {
         throw new errors_1.BridgeAPIError(`
       Unable to establish a connection with the Custom UI bridge.
       If you are trying to run your app locally, Forge apps only work in the context of Atlassian products. Refer to https://go.atlassian.com/forge-tunneling-with-custom-ui for how to tunnel when using a local development server.
     `);
     }
-    return window.__bridge.callBridge;
+    return globalThis.__bridge.callBridge;
 };
 exports.getCallBridge = getCallBridge;