Skip to content

Commit

Permalink
Refresh theme cookie expiration date
Browse files Browse the repository at this point in the history
  • Loading branch information
MinetaS committed Feb 3, 2025
1 parent a7255b0 commit ee37590
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
4 changes: 1 addition & 3 deletions server/fishtest/static/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ function formatBytes(bytes) {
}

function handleApplicationThemes() {
if (!getCookie("theme")) {
setTheme(mediaTheme());
}
setTheme(getCookie("theme") ?? mediaTheme());

try {
window
Expand Down
9 changes: 0 additions & 9 deletions server/fishtest/templates/base.mak
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@
crossorigin="anonymous"
>

% if request.cookies.get('theme') == 'dark':
<link
rel="stylesheet"
href="/css/theme.dark.css?v=${cache_busters['css/theme.dark.css']}"
integrity="sha384-${cache_busters['css/theme.dark.css']}"
crossorigin="anonymous"
>
% endif

<script
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js"
integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg=="
Expand Down

0 comments on commit ee37590

Please sign in to comment.