Merge pull request #2165 from mozilla/update-badge

Update badge color and copy
This commit is contained in:
Andrea Marchesini
2021-10-26 06:49:52 +02:00
committed by GitHub
+3 -2
View File
@@ -11,8 +11,9 @@ const badge = {
if (MAJOR_VERSIONS.indexOf(extensionInfo.version) > -1 &&
storage.browserActionBadgesClicked.indexOf(extensionInfo.version) < 0) {
browser.browserAction.setBadgeBackgroundColor({ color: "rgba(0,217,0,255)" });
browser.browserAction.setBadgeText({ text: "NEW" });
browser.browserAction.setBadgeBackgroundColor({ color: "rgb(255, 79, 94)" });
browser.browserAction.setBadgeText({ text: "!" });
browser.browserAction.setBadgeTextColor({ color: "rgb(255, 255, 255)" });
}
}
};