use custom class for storage

pages^2
bat 3 years ago
parent e33b7195b9
commit 6906520550

@ -88,7 +88,7 @@ export class Connections extends HTMLElement {
bGroup.addPrimary(this.text.add, () => {
const path = edit.pageInput.value
const access = edit.accessSelect.value
const exists = localStorage.getItem(path)
const exists = this.checkExists(path)
if (!exists) {
edit.error = 'doesntExist'
return

@ -136,6 +136,16 @@ export class PageSettings extends HTMLElement {
this.network.cspProfiles = value
}
set checkExists(value) {
this._checkExists = value
this.outbound.checkExists = value
this.inbound.checkExists = value
}
get checkExists() {
return this._checkExists
}
get language() {
return this._language
}

Loading…
Cancel
Save