Skip to content

Documentation / @etherfold/browser / tabElectionName

Function: tabElectionName() ​

tabElectionName(election): string

Defined in: packages/browser/src/tabElection.ts:166

THE LOCK (and the channel) AN ELECTION IS HELD ON, composed from the app's name and nothing else. A lock name and a BroadcastChannel name live in two different namespaces, so one string serves both.

Parameters ​

election ​

TabElection

Returns ​

string