Cleanup network provider (#3)
This commit is contained in:
committed by
Michael Vines
parent
d7b2612915
commit
de1df895a0
12
explorer/src/utils.ts
Normal file
12
explorer/src/utils.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export function findGetParameter(parameterName: string): string | null {
|
||||
let result = null,
|
||||
tmp = [];
|
||||
window.location.search
|
||||
.substr(1)
|
||||
.split("&")
|
||||
.forEach(function(item) {
|
||||
tmp = item.split("=");
|
||||
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
|
||||
});
|
||||
return result;
|
||||
}
|
Reference in New Issue
Block a user