Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions shell/src/main/resources/html/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,8 @@ function setupHterm() {
}

function getParams(key) {
var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");
var r = location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
var params = new URLSearchParams(location.search);
return params.get(key);
};

// This will be whatever normal entry/initialization point your project uses.
Expand Down
Loading