Set zoom to "both" by default for undefined cookie state of ui-image-zoom
This commit is contained in:
@@ -47,4 +47,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if(Cookies.get("ui-image-zoom")) {
|
||||
zoom(Cookies.get("ui-image-zoom"));
|
||||
}
|
||||
|
||||
if(Cookies.get("ui-image-zoom") === undefined)
|
||||
{
|
||||
zoom("both");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user