set pools in update

This commit is contained in:
hkalbasi 2021-12-26 03:04:50 +03:30
parent cf68ac848f
commit 37316c1687
1 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,11 @@ document.querySelector("#update-instances").addEventListener("click", () => {
if (request.status === 200) { if (request.status === 200) {
document.querySelector("#update-instances").innerHTML = 'gav'; document.querySelector("#update-instances").innerHTML = 'gav';
const instances = JSON.parse(request.responseText); const instances = JSON.parse(request.responseText);
document.querySelector("#update-instances").innerHTML = instances.twitter.length; const nitterRandomPool = instances.twitter.join(',');
const invidiousRandomPool = instances.youtube.join(',');
const bibliogramRandomPool = instances.instagram.join(',');
browser.storage.sync.set({ nitterRandomPool, invidiousRandomPool, bibliogramRandomPool });
document.querySelector("#update-instances").innerHTML = 'Done!';
} }
}); });