From e3baba574df8b1003c80f80dd6818f1f8bcb7092 Mon Sep 17 00:00:00 2001 From: vinay kharayat Date: Thu, 21 Oct 2021 22:13:27 +0530 Subject: [PATCH] Reload page on status change. --- browserAction/script.js | 1 - content_script.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/browserAction/script.js b/browserAction/script.js index 53c39f6..9159a5e 100644 --- a/browserAction/script.js +++ b/browserAction/script.js @@ -44,7 +44,6 @@ async function setStatus(status) { sliderNode.disabled = true; } else { sliderNode.disabled = false; - } } diff --git a/content_script.js b/content_script.js index de9013c..c94aff7 100644 --- a/content_script.js +++ b/content_script.js @@ -29,6 +29,7 @@ function speakerBoosterStatus(status) { gainNode.gain.value = 1; source.connect(gainNode); gainNode.connect(audioCtx.destination); + window.location.reload(); } else { browser.storage.local.get('value').then(result => increaseVolume(result.value)); }