diff --git a/static/js/potd.js b/static/js/potd.js index 520d0cc..956ab7b 100644 --- a/static/js/potd.js +++ b/static/js/potd.js @@ -4,7 +4,7 @@ function update_screen_size() { "width": window.screen.availWidth, "height": window.screen.availHeight } - if (!cookie || cookie["width"] != data["width"] || cookie["height"] != data["height"]) { + if (!cache || cache["width"] != data["width"] || cache["height"] != data["height"]) { set_cookie("EarwigScreenCache", JSON.stringify(data), 1095); } }