Fix expire for prefs cookie

This commit is contained in:
Omar Roth 2019-03-27 11:12:39 -05:00
parent 9239cfb3c1
commit 63be05146d
2 changed files with 28 additions and 3 deletions

View file

@ -77,7 +77,7 @@
<% else %>
<div class="pure-u-1-3">
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<% if env.get?("preferences").try &.as(Preferences).dark_mode %>
<% if env.get("preferences").as(Preferences).dark_mode %>
<i class="icon ion-ios-sunny"></i>
<% else %>
<i class="icon ion-ios-moon"></i>