From b6d13d6def08069f2927e89b08fb1fd12153ac7f Mon Sep 17 00:00:00 2001 From: Anna Wolf <043456d10a0f8b9e24ebb18fdc141e424ece8b28@cloudflare.com> Date: Sun, 13 Sep 2020 01:42:54 +0200 Subject: [PATCH] cg.js --- addons/ismitmlinkFX/cg.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/ismitmlinkFX/cg.js b/addons/ismitmlinkFX/cg.js index 40a7123da..2fac9226d 100644 --- a/addons/ismitmlinkFX/cg.js +++ b/addons/ismitmlinkFX/cg.js @@ -5,8 +5,9 @@ document.addEventListener('DOMContentLoaded', () => { document.getElementById('obs').checked = (g.obs == 'y') ? true : false; document.getElementById('dbg').checked = (g.dbg == 'y') ? true : false; document.getElementById('alt').checked = (g.alt == 'y') ? true : false; - document.getElementById('opon').checked = (g.opd != 'n') ? true : false; + document.getElementById('opon').checked = (g.opd != 'n' && g.opd != 'l') ? true : false; document.getElementById('opoff').checked = (g.opd == 'n') ? true : false; + document.getElementById('opol').checked = (g.opd == 'l') ? true : false; let ul = g.mul || 'eo'; fetch('i18n/' + ul + '.json', { method: 'GET' @@ -62,6 +63,11 @@ document.getElementById('opoff').addEventListener('click', () => { location.reload(); }); }); +document.getElementById('opol').addEventListener('click', () => { + browser.runtime.sendMessage('dbmode,s2').then(() => { + location.reload(); + }); +}); document.getElementById('crs').addEventListener('click', () => { browser.runtime.sendMessage('clear').then(() => { location.reload();