diff --git a/app/assets/javascripts/outfit-viewer.js b/app/assets/javascripts/outfit-viewer.js index 243bff5c..20bf3fcb 100644 --- a/app/assets/javascripts/outfit-viewer.js +++ b/app/assets/javascripts/outfit-viewer.js @@ -145,7 +145,7 @@ class OutfitViewer extends HTMLElement { .split("; ") .find((row) => row.startsWith("DTIOutfitViewerIsPlaying=")); if (cookie) { - return cookie.split("=")[1] === "true"; + return cookie.split("=")[1] !== "false"; } return true; // Default to playing } diff --git a/app/views/wardrobe/show.html.haml b/app/views/wardrobe/show.html.haml index f639570b..a7913e89 100644 --- a/app/views/wardrobe/show.html.haml +++ b/app/views/wardrobe/show.html.haml @@ -35,7 +35,7 @@ .preview-controls-top %outfit-viewer-play-pause-toggle{for: "wardrobe-outfit-viewer"} %label.play-pause-control-button.button - %input{type: "checkbox"} + %input{type: "checkbox", checked: cookies[:DTIOutfitViewerIsPlaying] != "false"} %span.paused-label Paused %span.playing-label Playing