mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:25:56 +00:00
get rid of a few more prototype-isms
This commit is contained in:
@@ -16,10 +16,10 @@ window.addEventListener("load", function() {
|
||||
setup_night_mode: function() {
|
||||
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
|
||||
const link = new Element("link", {
|
||||
rel: "stylesheet",
|
||||
id: "theme_auto_css"
|
||||
});
|
||||
const link = document.createElement("link");
|
||||
|
||||
link.rel = "stylesheet";
|
||||
link.id = "theme_auto_css";
|
||||
|
||||
link.onload = function() {
|
||||
document.querySelector("body").removeClassName("css_loading");
|
||||
|
||||
Reference in New Issue
Block a user