diff --git a/WebSocketClient/src/ImportExportFiles.ts b/WebSocketClient/src/ImportExportFiles.ts index 08f674a..4333254 100644 --- a/WebSocketClient/src/ImportExportFiles.ts +++ b/WebSocketClient/src/ImportExportFiles.ts @@ -48,5 +48,5 @@ export function uploadFile(): Promise { }; }) } - return new Promise((_resolve, reject) => reject("Cannot reach HTML-Input field")); + return Promise.reject("Cannot reach HTML-Input field"); } \ No newline at end of file diff --git a/WebSocketClient/src/intro.ts b/WebSocketClient/src/intro.ts index c329acc..0e9e2ab 100644 --- a/WebSocketClient/src/intro.ts +++ b/WebSocketClient/src/intro.ts @@ -39,7 +39,7 @@ export const initIntroJS = () => { intro.setOption("highlightClass", "tmpClass"); intro.start(); - var helperLayer = document.getElementsByClassName("tmpClass"); + const helperLayer = document.getElementsByClassName("tmpClass"); setTimeout(() => { if(helperLayer[0] instanceof HTMLElement){ helperLayer[0].style["box-shadow"] = "rgb(255, 255, 255) 0px 0px 1px 2px, rgba(230, 230, 230, 0.44) 0px 0px 0px 5000px";