mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 23:08:33 +02:00
Remove retired theme aliases (#430)
* Remove required theme aliases Replaced uses of headerURL, accentcolor, and textcolor with theme_frame, frame, and tab_background_text. Tested and confirmed all extensions working as expected. * Fixed another reference to headerURL Co-authored-by: Richard Bloor <rbloor@atlassian.com>
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
function setSidebarStyle(theme) {
|
||||
const myElement = document.getElementById("myElement");
|
||||
|
||||
// colors.frame and colors.accentcolor are aliases
|
||||
if (theme.colors && (theme.colors.accentcolor || theme.colors.frame)) {
|
||||
if (theme.colors && theme.colors.frame) {
|
||||
document.body.style.backgroundColor =
|
||||
theme.colors.accentcolor || theme.colors.frame;
|
||||
theme.colors.frame;
|
||||
} else {
|
||||
document.body.style.backgroundColor = "white";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user