We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79aab58 commit f45b157Copy full SHA for f45b157
1 file changed
src/script.js
@@ -887,6 +887,12 @@ let check = () => {
887
$("#scrollIcon").toggleClass("scroll-dark");
888
};
889
890
+chrome.storage.sync.get("speakcheck", (obj) => {
891
+ if(obj.speakcheck === false){
892
+ document.getElementById("speak").click();
893
+ }
894
+});
895
+
896
let changeSpeak = () => {
897
shouldSpeak = !shouldSpeak;
898
var SpeakIcon = document.getElementById("speak-icon");
@@ -896,6 +902,9 @@ let changeSpeak = () => {
902
SpeakIcon.innerText = "volume_up";
903
}
904
console.log("Should be speaking? " + shouldSpeak);
905
+ chrome.storage.sync.set({
906
+ "speakcheck": shouldSpeak
907
+ }, () => {});
899
908
900
909
901
910
scrollIconTopElement.addEventListener("click", (e) => {
0 commit comments