fix(tracker): unique broadcast channel name
This commit is contained in:
parent
9c8e915387
commit
9d0058c66b
1 changed files with 2 additions and 1 deletions
|
|
@ -180,7 +180,8 @@ export default class App {
|
|||
)
|
||||
|
||||
if (!this.options.forceSingleTab && globalThis && 'BroadcastChannel' in globalThis) {
|
||||
this.bc = inIframe() ? null : new BroadcastChannel('rick')
|
||||
const host = location.hostname.split('.').slice(-2).join('_')
|
||||
this.bc = inIframe() ? null : new BroadcastChannel(`rick_${host}`)
|
||||
}
|
||||
|
||||
this.revID = this.options.revID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue