* Returns changed settings * @returns {Array }
()
| 384 | * @returns {Array<String>} |
| 385 | */ |
| 386 | #getChangedKeys() { |
| 387 | if (!this.#oldSettings) return []; |
| 388 | const keys = []; |
| 389 | Object.keys(this.#oldSettings).forEach((key) => { |
| 390 | const value = this.#oldSettings[key]; |
| 391 | if (typeof value === "object") { |
| 392 | if (!areEqual(value, this.value[key])) keys.push(key); |
| 393 | return; |
| 394 | } |
| 395 | |
| 396 | if (value !== this.value[key]) keys.push(key); |
| 397 | }); |
| 398 | return keys; |
| 399 | } |
| 400 | |
| 401 | #applySettings(setting) { |
| 402 | switch (setting) { |