1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Chore: Web: Skip secondary single-instance check in dev mode (#13225)

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
Henry Heino
2025-09-16 04:52:43 -07:00
committed by GitHub
parent 97d3a8243d
commit e33c142c5a

View File

@@ -3,6 +3,7 @@ import { Platform } from 'react-native';
const lockToSingleInstance = async () => { const lockToSingleInstance = async () => {
if (Platform.OS !== 'web') return; if (Platform.OS !== 'web') return;
if (__DEV__) return;
const channel = new BroadcastChannel('single-instance-lock'); const channel = new BroadcastChannel('single-instance-lock');
channel.postMessage('app-opened'); channel.postMessage('app-opened');