Merge pull request #3314 from BrokenEagle/fix-resize-javascript

Fix window resizing issue in mobile mode
This commit is contained in:
Albert Yi
2017-09-29 17:51:58 -07:00
committed by GitHub

View File

@@ -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();
}
}