Get our previously strict files a bit tighter (#604)

Now they meet noUnusedParameters
This commit is contained in:
Jordi Bunster
2021-04-27 15:27:17 -07:00
committed by GitHub
parent e8b79d6260
commit 154db1dcd5
9 changed files with 22 additions and 29 deletions

View File

@@ -9,7 +9,7 @@ import { HttpHeaders, TerminalQueryParams } from "../Common/Constants";
const getUrlVars = (): { [key: string]: string } => {
const vars: { [key: string]: string } = {};
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, (m, key, value): string => {
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, (_m, key, value): string => {
vars[key] = decodeURIComponent(value);
return value;
});