Upgrading all dependencies in front

Upgrading to Webpack 5, Typescript 4, ...
This commit is contained in:
David Négrier 2021-05-12 10:35:14 +02:00
parent b56e4b5674
commit 8c1e01566a
6 changed files with 616 additions and 1371 deletions

View file

@ -1,6 +1,5 @@
import { Subject } from "rxjs";
import { ChatEvent, isChatEvent } from "./Events/ChatEvent";
import * as crypto from "crypto";
import { HtmlUtils } from "../WebRtc/HtmlUtils";
import { EnterLeaveEvent } from "./Events/EnterLeaveEvent";
import { isOpenPopupEvent, OpenPopupEvent } from "./Events/OpenPopupEvent";
@ -176,7 +175,7 @@ class IframeListener {
}
private getIFrameId(scriptUrl: string): string {
return 'script' + crypto.createHash('md5').update(scriptUrl).digest("hex");
return 'script' + btoa(scriptUrl);
}
unregisterScript(scriptUrl: string): void {