Skip to content

Commit

Permalink
Respect user's css in weather view
Browse files Browse the repository at this point in the history
  • Loading branch information
z------------- committed Oct 1, 2019
1 parent 69c3708 commit ab5a82a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions weather/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,12 @@ document.body.addEventListener("click", function(e) {
})
}
})

// load and inject user's custom css
chrome.storage.sync.get("customCSS", r => {
if (r.customCSS) {
let styleElem = document.createElement("style")
styleElem.textContent = r.customCSS
document.head.appendChild(styleElem);
}
})

0 comments on commit ab5a82a

Please sign in to comment.