Some lil fixes + select best MPB based on video track duration
This commit is contained in:
@@ -32,11 +32,11 @@ function updateBadge() {
|
||||
const hasMPD = window.detectedMPDs && window.detectedMPDs.length > 0;
|
||||
|
||||
if (hasContent && hasMPD) {
|
||||
browserAction.setBadgeText({ text: "●" });
|
||||
browserAction.setBadgeBackgroundColor({ color: "#dc3545" });
|
||||
browserAction.setBadgeText({ text: detectedMPDs.length.toString() });
|
||||
browserAction.setBadgeBackgroundColor({ color: "#22c55e" });
|
||||
} else if (hasContent) {
|
||||
browserAction.setBadgeText({ text: "!" });
|
||||
browserAction.setBadgeBackgroundColor({ color: "#fd7e14" });
|
||||
browserAction.setBadgeTextColor({ color: "#fd7e14" });
|
||||
} else {
|
||||
browserAction.setBadgeText({ text: "" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user