mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-21 12:48:28 +00:00
awesomeTheme: disable Awesomness with a toggle if you hate fun
This commit is contained in:
parent
78b60a72a8
commit
99248dec86
@ -4,7 +4,7 @@ function changeIcon(button, src) {
|
||||
|
||||
// load an Awesome theme on an Awesome day
|
||||
let date = new Date();
|
||||
if (date.getMonth() === 3 && date.getDate() === 1) {
|
||||
if (date.getMonth() === 3 && date.getDate() === 1 && localStorage.getItem("disableChangelog") !== "true") {
|
||||
let head = document.head;
|
||||
|
||||
head.appendChild(document.createElement('link')).rel = 'stylesheet';
|
||||
|
@ -653,9 +653,10 @@ export default function(obj) {
|
||||
'FilenamePreviewAudioAuthor'
|
||||
])}
|
||||
</script>
|
||||
<script src="cobalt.js"></script>
|
||||
<!--- Awesome theme --->
|
||||
<script src="aprilFools/awesomeTheme.js"></script>
|
||||
<!--- Awesome theme --->
|
||||
<script src="cobalt.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user