Note: See BroadcastChannel() to understand usage.
BroadcastChannel(channelName)channelNameSee BroadcastChannel().
An unpartitioned BroadcastChannel object.
SecurityError DomExceptionThrown if access was not granted.
document.requestStorageAccess({ BroadcastChannel: true }).then(
(handle) => {
console.log("BroadcastChannel access granted");
handle.BroadcastChannel(channel_name);
},
() => {
console.log("BroadcastChannel access denied");
},
);Note: See Using the Storage Access API for a more complete example.