1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

get rid of a few more prototype-isms

This commit is contained in:
Andrew Dolgov
2021-02-18 22:23:06 +03:00
parent 89fd9ec8c3
commit c088e9d9d8
8 changed files with 8 additions and 7608 deletions

View File

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