1
0
mirror of https://github.com/osmarks/website synced 2025-09-05 11:57:57 +00:00

updated things???

This commit is contained in:
2020-07-01 20:29:42 +01:00
parent 958facc2cf
commit dee9035ffe
14 changed files with 254 additions and 12 deletions

View File

@@ -297,4 +297,14 @@ window.points = (() => {
achievementInfo,
setMetric
}
})()
})()
const customStyle = localStorage.getItem("user-stylesheet")
let customStyleEl = null
if (customStyle) {
customStyleEl = document.createElement("style")
customStyleEl.appendChild(document.createTextNode(customStyle))
customStyleEl.onload = () => console.log("Loaded custom styles")
customStyleEl.id = "custom-style"
document.head.appendChild(customStyleEl)
}