Skip to content

Commit

Permalink
chips on modified -- start timers only if extension running
Browse files Browse the repository at this point in the history
also fixes #34
  • Loading branch information
chdinesh1089 committed Oct 5, 2020
1 parent c89b42e commit 7723515
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function sendJoinInfo(e) {
clearAllTimeouts();
break;
case "updateWords":
startSubtitleTimers(state);
if (state.submitReset === "reset") startSubtitleTimers(state);
break;
default:
console.log("message did not match: ", message);
Expand Down
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ function setupChips(words) {
browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
browser.tabs
.sendMessage(tabs[0].id, { message: "updateWords", state })
.then(success)
.catch(catchError);
});
}
Expand Down

0 comments on commit 7723515

Please sign in to comment.