💎style
This commit is contained in:
parent
22f0d10d8a
commit
15c7d10560
|
|
@ -634,7 +634,7 @@ function SetIcon(obj) {
|
|||
chrome.action.setBadgeText({ text: "", tabId: obj.tabId }, function () { if (chrome.runtime.lastError) { return; } });
|
||||
// chrome.action.setTitle({ title: "还没闻到味儿~", tabId: obj.tabId }, function () { if (chrome.runtime.lastError) { return; } });
|
||||
} else if (G.badgeNumber) {
|
||||
obj.number = obj.number > 99 ? "99+" : obj.number.toString();
|
||||
obj.number = obj.number > 999 ? "999+" : obj.number.toString();
|
||||
chrome.action.setBadgeText({ text: obj.number, tabId: obj.tabId }, function () { if (chrome.runtime.lastError) { return; } });
|
||||
// chrome.action.setTitle({ title: "抓到 " + obj.number + " 条鱼", tabId: obj.tabId }, function () { if (chrome.runtime.lastError) { return; } });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue