mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-18 12:50:49 +01:00
Chromium: Badge color for missing resources (#1031)
This commit is contained in:
parent
659430da84
commit
465d7d40ea
@ -82,11 +82,6 @@ wrappers.setIcon = function (details, type) {
|
|||||||
wrappers.setBadgeColoring = function (tabId, value) {
|
wrappers.setBadgeColoring = function (tabId, value) {
|
||||||
let textColor, backgroundColor;
|
let textColor, backgroundColor;
|
||||||
|
|
||||||
if (chrome.browserAction.setBadgeBackgroundColor === undefined ||
|
|
||||||
chrome.browserAction.setBadgeTextColor === undefined) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (value === BadgeSettingHTMLFilter.TYPE) {
|
if (value === BadgeSettingHTMLFilter.TYPE) {
|
||||||
textColor = wrappers.badgeHTMLfilterTextColor;
|
textColor = wrappers.badgeHTMLfilterTextColor;
|
||||||
backgroundColor = wrappers.badgeHTMLFilterBackgroundColor;
|
backgroundColor = wrappers.badgeHTMLFilterBackgroundColor;
|
||||||
@ -100,12 +95,17 @@ wrappers.setBadgeColoring = function (tabId, value) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
chrome.browserAction.setBadgeTextColor({
|
if (chrome.browserAction.setBadgeTextColor !== undefined) {
|
||||||
'tabId': tabId,
|
chrome.browserAction.setBadgeTextColor({
|
||||||
'color': textColor
|
'tabId': tabId,
|
||||||
});
|
'color': textColor
|
||||||
chrome.browserAction.setBadgeBackgroundColor({
|
});
|
||||||
'tabId': tabId,
|
}
|
||||||
'color': backgroundColor
|
|
||||||
});
|
if (chrome.browserAction.setBadgeBackgroundColor !== undefined) {
|
||||||
|
chrome.browserAction.setBadgeBackgroundColor({
|
||||||
|
'tabId': tabId,
|
||||||
|
'color': backgroundColor
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Custom block screen (<a href="https://codeberg.org/nobody/LocalCDN/issues/1050">#1050</a>)</li>
|
<li>Custom block screen (<a href="https://codeberg.org/nobody/LocalCDN/issues/1050">#1050</a>)</li>
|
||||||
<li>Banner for chromium based browser (<a href="https://codeberg.org/nobody/LocalCDN/issues/1068">#1068</a>)</li>
|
<li>Banner for chromium based browser (<a href="https://codeberg.org/nobody/LocalCDN/issues/1068">#1068</a>)</li>
|
||||||
|
<li>Chromium: Badge color for missing resources (<a href="https://codeberg.org/nobody/LocalCDN/issues/1031">#1031</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Removed</p>
|
<p>Removed</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user