observe-all
Version:
Prevent users from opening and interacting with multiple tabs of the same web app.
24 lines (16 loc) • 352 B
Markdown
> Prevent users from opening and interacting with your web app in multiple tabs.
Install via npm:
```bash
npm install observe-all
```
```ts
import ObserveAll from 'observe-all';
new ObserveAll({
onBlock: () => {
alert('Another tab is already open!');
},
});
```