blob: ec10c0c4b16ce19dc15e813aef36481c2d92cb22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
browser.storage.local.get("proxyUrl").then(({ proxyUrl }) => {
console.log("Saved proxy url is", proxyUrl);
document.getElementById("proxy_url").value = proxyUrl;
document.getElementById("proxy_url").addEventListener("input", (e) => {
const { value } = e.currentTarget;
browser.storage.local
.set({
proxyUrl: value,
})
.then(() => {
console.log("New proxy url saved!", value);
});
});
});
|