Fixed creating records beneath _no.domain

This commit is contained in:
Magnus Åhall 2026-02-26 09:17:48 +01:00
parent fc9583ecd2
commit 96f3a90ab9

View file

@ -451,6 +451,8 @@ class Record {
if (value.slice(0, 2) == '*.') { if (value.slice(0, 2) == '*.') {
this.data['Name'] = value.slice(2) this.data['Name'] = value.slice(2)
this.data['MatchSubdomain'] = 'true' this.data['MatchSubdomain'] = 'true'
} else if (value.slice(-11) == '._no.domain') {
this.data['Name'] = value.slice(0, -11)
} else { } else {
this.data['Name'] = value this.data['Name'] = value
this.data['MatchSubdomain'] = 'false' this.data['MatchSubdomain'] = 'false'
@ -690,7 +692,7 @@ class Settings {
constructor() {// {{{ constructor() {// {{{
this.settings = new Map([ this.settings = new Map([
['boxed_folders', false], ['boxed_folders', false],
['toplevel_open', true], ['toplevel_open', false],
]) ])
// Read any configured settings from local storage, but keeping default value // Read any configured settings from local storage, but keeping default value