replace randomUUID with something that is available in real live

This commit is contained in:
2023-03-12 20:15:29 +01:00
parent 1ca4f18e3d
commit 4679da480c
5 changed files with 13 additions and 5 deletions

View File

@@ -8,7 +8,11 @@ if (environment.production) {
enableProdMode();
}
(<any>window).submitterId = crypto.randomUUID();
(<any>window).randomId = () => {
return Math.random().toString(36).replace('0.', '') + Math.random().toString(36).replace('0.', '');
};
(<any>window).submitterId = (<any>window).randomId();
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));