Remove dependency on uuid (#33230)
* Remove dependency on `uuid` * Delint
This commit is contained in:
@@ -7,7 +7,6 @@ Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
/*
|
||||
* Functionality for checking that only one instance is running at once
|
||||
@@ -107,7 +106,7 @@ export function checkSessionLockFree(): boolean {
|
||||
*/
|
||||
export async function getSessionLock(onNewInstance: () => Promise<void>): Promise<boolean> {
|
||||
/** unique ID for this session */
|
||||
const sessionIdentifier = uuidv4();
|
||||
const sessionIdentifier = window.crypto.randomUUID();
|
||||
|
||||
const prefixedLogger = logger.getChild(`getSessionLock[${sessionIdentifier}]`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user