From 6f593de46d53882e64ad907bfc04296181ef56ea Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Sat, 3 Jun 2017 12:42:37 -0700 Subject: [PATCH] Resize images for mobile layout --- 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 a54408d8f..98c4adc49 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -25,7 +25,7 @@ this.initialize_similar(); this.initialize_replace_image_dialog(); - if (Danbooru.meta("always-resize-images") === "true") { + if ((Danbooru.meta("always-resize-images") === "true") || ((Danbooru.Cookie.get("dm") != "1") && (window.innerWidth <= 660))) { $("#image-resize-to-window-link").click(); } }