fix laravel leftover in darkmode

This commit is contained in:
Thomas G 2023-04-19 17:37:05 +10:00 committed by GitHub
parent bec79fa259
commit 79c8234039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ function getDarkMode() {
var currentTime = new Date().getHours();
if (6 >= currentTime || currentTime > 18) {
var li = document.createElement('link');
var href = "{{ asset('css/appdark.css?id='.Str::random(8)) }}";
var href = "https://archblox.com/css/appdark.css";
var rel = 'stylesheet';
li.setAttribute('href', href);
li.setAttribute('rel', rel);