From 6d71f2e102045df15b45fb6e2dbfd042d302d6ed Mon Sep 17 00:00:00 2001 From: Sze Chuen Tan <09893eab840e3b392c98991c02a0deabae502139@cloudflare.com> Date: Fri, 31 Jul 2020 12:33:30 +0200 Subject: [PATCH] cg.js --- addons/bcmaFX/cg.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/bcmaFX/cg.js b/addons/bcmaFX/cg.js index 74a0492b2..b250820b0 100644 --- a/addons/bcmaFX/cg.js +++ b/addons/bcmaFX/cg.js @@ -12,6 +12,8 @@ document.addEventListener('DOMContentLoaded', () => { document.getElementById('vau').value = r[3]; document.getElementById('nnf1').checked = r[4][0]; document.getElementById('nnf2').checked = r[4][1]; + document.getElementById('csa1').checked = r[4][2]; + document.getElementById('csa2').checked = r[4][3]; switch (r[2]) { case 0: document.getElementById('ta0').checked = true; @@ -74,6 +76,12 @@ document.addEventListener('DOMContentLoaded', () => { document.getElementById('nnf2').addEventListener('click', function () { browser.runtime.sendMessage(['nnf', '2', (this.checked ? true : false)]); }); + document.getElementById('csa1').addEventListener('click', function () { + browser.runtime.sendMessage(['csa', '1', (this.checked ? true : false)]); + }); + document.getElementById('csa2').addEventListener('click', function () { + browser.runtime.sendMessage(['csa', '2', (this.checked ? true : false)]); + }); document.getElementById('ta0').addEventListener('click', function () { if (this.checked) { browser.runtime.sendMessage(['ta', '0']);