Skip to content

Commit

Permalink
修复学习结束后状态无法变更
Browse files Browse the repository at this point in the history
  • Loading branch information
ttglad committed May 27, 2022
1 parent 5342bc6 commit 884726a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified release.crx
Binary file not shown.
6 changes: 3 additions & 3 deletions release/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ function stopStudy() {
chrome.storage.local.get(["studyWindowId"], function (result) {
logMessage("stopStudy begin, studyWindowId is: " + result.studyWindowId);
if (result.studyWindowId) {
// 重置参数
chrome.storage.local.remove(["studyWindowId", "studyTabId"]);
chrome.action.setBadgeText({ text: "" });
// 关闭窗口
chrome.windows.remove(result.studyWindowId, function () {
noticeMessage(chrome.i18n.getMessage("extFinish"));
logMessage("stopStudy success.");
});
// 重置参数
chrome.storage.local.remove(["studyWindowId", "studyTabId"]);
chrome.action.setBadgeText({ text: "" });
}
});
}
Expand Down

0 comments on commit 884726a

Please sign in to comment.