Add proxy switcher to the mix

This commit is contained in:
MotorTruck1221
2025-04-21 23:26:40 -06:00
parent 5b808afae5
commit 4ea7ab5e11
4 changed files with 14 additions and 5 deletions
+3 -1
View File
@@ -71,7 +71,9 @@ class Settings {
: document.documentElement.className = theme || this.#storageManager.getVal('theme');
}
proxy(prox: 'uv' | 'sj') {}
proxy(prox: 'uv' | 'sj') {
this.#storageManager.setVal('proxy', prox);
}
async *#init() {
yield this.theme(this.#storageManager.getVal('theme') || 'default');