diff --git a/connections.js b/connections.js index 272cb18..a8288e6 100644 --- a/connections.js +++ b/connections.js @@ -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 diff --git a/page-settings.js b/page-settings.js index 539868e..361d997 100644 --- a/page-settings.js +++ b/page-settings.js @@ -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 }