Skip to content

Commit

Permalink
style(vue2): lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 15, 2024
1 parent f0e093b commit 55389c7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vue2-app/src/components/Connect/wslink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ function getClient(name) {
// Remove any URL parameters once config generated
const params = new URL(window.location).searchParams;
const paramsToClean = [
"sessionURL",
"sessionManagerURL",
"secret",
"application",
"remove",
].concat(params.get("remove")?.split(",") || []);
'sessionURL',
'sessionManagerURL',
'secret',
'application',
'remove',
].concat(params.get('remove')?.split(',') || []);
paramsToClean.forEach((v) => params.delete(v));
const cleanURL = `${window.location.pathname}${
params.size ? "?" : ""
}${params.toString()}${window.location.hash}`;
const cleanURL = `${window.location.pathname}${params.size ? '?' : ''}${params.toString()}${
window.location.hash
}`;
window.history.replaceState({}, document.title, cleanURL);

return client;
Expand Down

0 comments on commit 55389c7

Please sign in to comment.