diff --git a/ext/handle_pixel/script.js b/ext/handle_pixel/script.js index ce09d185..264b6422 100644 --- a/ext/handle_pixel/script.js +++ b/ext/handle_pixel/script.js @@ -39,7 +39,7 @@ document.addEventListener('DOMContentLoaded', () => { $("img.shm-main-image").click(function(e) { switch(shm_cookie_get("ui-image-zoom")) { - case "full": zoom("width"); break; + case "full": zoom("both"); break; default: zoom("full"); break; } }); @@ -47,4 +47,7 @@ document.addEventListener('DOMContentLoaded', () => { if(shm_cookie_get("ui-image-zoom")) { zoom(shm_cookie_get("ui-image-zoom")); } + else { + zoom("both"); + } });