Skip to content

Commit

Permalink
置顶的标签组不能移动
Browse files Browse the repository at this point in the history
  • Loading branch information
scoful committed Jan 24, 2024
1 parent ad9a0f5 commit 96ee74a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ chrome.runtime.onInstalled.addListener(function (details) {
} else if (details.reason === 'update') {
// 这里是插件更新时要执行的代码
console.log('插件已被更新!');
setTimer('inTimeSync', 3 * 1000);
}
});

Expand Down Expand Up @@ -794,7 +795,7 @@ chrome.alarms.onAlarm.addListener(function (alarm) {
checkAutoSyncGithub();
}
if (alarm.name === "inTimeSync") {
console.log("实时同步触发")
// console.log("实时同步触发")
subtractAll()

setTimer('inTimeSync', 3 * 1000);
Expand Down Expand Up @@ -1206,7 +1207,7 @@ async function add() {
// 安全清零,清空storage连续变化导致的数字累加,并顺便推送到gist,相当于缓存了一部分后直接清空并推送
async function subtractAll() {
const current = safeOperation.getValue();
console.log('Current value:', current);
// console.log('Current value:', current);
if (current > 0) {
startPushToGiteeGist();
await safeOperation.subtractAll();
Expand Down
2 changes: 2 additions & 0 deletions js/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,7 @@ https://www.google.com | Google
if (isPined) {
pinStatus = `${chrome.i18n.getMessage("noToTop")}`
pinImgClass = ".pin-img"
lockClass = ".filtered"
} else {
pinStatus = `${chrome.i18n.getMessage("toTop")}`
pinImgClass = ".no-pin-img"
Expand Down Expand Up @@ -2624,6 +2625,7 @@ https://www.google.com | Google
if (isPined) {
pinStatus = `${chrome.i18n.getMessage("noToTop")}`
pinImgClass = ".pin-img"
lockClass = ".filtered"
} else {
pinStatus = `${chrome.i18n.getMessage("toTop")}`
pinImgClass = ".no-pin-img"
Expand Down

0 comments on commit 96ee74a

Please sign in to comment.