mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-07-18 00:46:59 +00:00
trim trailing / when saving url
This commit is contained in:
parent
6cfa522eb6
commit
f03d3a07ce
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
// stores URL and API key
|
||||
URLStore.set(localStorage.getItem('headscaleURL') || '');
|
||||
URLStore.subscribe((val) => localStorage.setItem('headscaleURL', val));
|
||||
URLStore.subscribe((val) => localStorage.setItem('headscaleURL', val.replace(/\/+$/, '')));
|
||||
APIKeyStore.set(localStorage.getItem('headscaleAPIKey') || '');
|
||||
APIKeyStore.subscribe((val) => localStorage.setItem('headscaleAPIKey', val));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue