From 216d43e35d49b23682879e6b96ec45ae61dec604 Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Thu, 28 Sep 2017 13:00:28 -0700 Subject: [PATCH] Use window.screen for resizes instead --- app/assets/javascripts/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index eb5f00da0..b78984f8c 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -27,7 +27,7 @@ this.initialize_replace_image_dialog(); this.initialize_gestures(); - if ((Danbooru.meta("always-resize-images") === "true") || ((Danbooru.Cookie.get("dm") != "1") && (window.innerWidth <= 660))) { + if ((Danbooru.meta("always-resize-images") === "true") || ((Danbooru.Cookie.get("dm") !== "1") && (window.screen.width <= 660))) { $("#image-resize-to-window-link").click(); } }