Add duplicated

This commit is contained in:
Richard Sommerville 2022-08-10 07:00:03 +00:00 committed by #deCloudflare
parent a59884a46f
commit 3b5b88e0f9

View File

@ -7,11 +7,9 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('opon').checked = (g.opd != 'n') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
document.getElementById('ut3').checked = (g.cep || 3) == 3 ? true : false;
document.getElementById('ut0').checked = g.cep < 1 ? true : false;
document.getElementById('ut1').checked = g.cep == 1 ? true : false;
document.getElementById('ut2').checked = g.cep == 2 ? true : false;
document.getElementById('ut9').checked = g.cep == 9 ? true : false;
document.getElementById('ut9x').value = (g.aep == undefined || g.aep == 'https://karma.crimeflare.eu.org/api/is_at.php') ? '' : g.aep;
document.getElementById('ut9x').value = (g.aep == undefined) ? '' : g.aep;
fetch('i18n/' + (g.mul || 'eo') + '.json', {
method: 'GET'
}).then(j => j.json()).then(j => {
@ -66,16 +64,6 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,0').then(() => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,1').then(() => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,2').then(() => {
location.reload();