Skip to content

Commit

Permalink
refactor(playground): addressed sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisDommer committed Jan 9, 2024
1 parent c8fc5c8 commit 8d890c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WebSocketClient/src/ImportExportFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export function uploadFile(): Promise<string> {
};
})
}
return new Promise((_resolve, reject) => reject("Cannot reach HTML-Input field"));
return Promise.reject("Cannot reach HTML-Input field");
}
2 changes: 1 addition & 1 deletion WebSocketClient/src/intro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 8d890c9

Please sign in to comment.