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
commit 5c12e58cd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)" });
}
}
};