replace randomUUID with something that is available in real live
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user