Skip to content

Commit

Permalink
feat: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
tor0405 committed Jun 11, 2024
1 parent 55d6970 commit 61b9f07
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const DEFAULT_TIMEOUT = 1000;
* @typedef {object} RpcRequest
* @property {string} [jsonrpc="2.0"]
* @property {string} method
* @property {object} params
* @property {string} params.type
* @property {T} params.payload
* @property {T} params
* @property {string | number} [id]
*/

Expand Down Expand Up @@ -303,5 +301,5 @@ export class PodiumBridge {
}
}

globalThis['@podium'] = globalThis['@podium'] || {};
globalThis['@podium'].bridge = new PodiumBridge();
globalThis.window['@podium'] = globalThis.window['@podium'] || {};
globalThis.window['@podium'].bridge = new PodiumBridge();

0 comments on commit 61b9f07

Please sign in to comment.