We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a93f4a commit dcb8eaaCopy full SHA for dcb8eaa
src/utils/TabCommunication.ts
@@ -19,7 +19,7 @@ export class TabCommunication {
19
* @param {string} channelName - 通信频道名称(区分不同通信链路)
20
*/
21
constructor(channelName: string) {
22
- this.isSupported = typeof window.BroadcastChannel === 'undefined'
+ this.isSupported = typeof window.BroadcastChannel !== 'undefined'
23
this.messageCallback = null // 消息回调函数
24
this.storageKey = `${pkg.name}_${channelName}` // localStorage 唯一标识(避免冲突)
25
this.bc = null
0 commit comments