Fixed client-side IACDN setting.

This commit is contained in:
rainbow napkin 2025-11-01 07:45:23 -04:00
parent ccb1d91a5b
commit b57d723d62
3 changed files with 13 additions and 6 deletions

View file

@ -137,7 +137,7 @@ class settingsPanel extends panelObj{
//If we hit enter
if(event.key == "Enter"){
//If we have an invalid server string
if(!(this.iaCDN.value.match(/^ia[0-9]{6}\...$/g) || this.iaCDN.value == "")){
if(!(this.iaCDN.value.match(/^(ia|dn)[0-9]{6}\...$/g) || this.iaCDN.value == "")){
//reset back to what was set before
this.iaCDN.value = localStorage.getItem('IACDN');