From 036392b6485f8209b860daae4e1b5d5d1aca5004 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Fri, 25 Aug 2017 11:07:16 +1200 Subject: [PATCH] Use a default get value for panel-width-ratio ls --- src/day8/re_frame/trace.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/day8/re_frame/trace.cljs b/src/day8/re_frame/trace.cljs index 6b0e776..96d99fb 100644 --- a/src/day8/re_frame/trace.cljs +++ b/src/day8/re_frame/trace.cljs @@ -270,8 +270,7 @@ ;; Add clear button ;; Filter out different trace types (let [position (r/atom :right) - panel-width-ratio (r/atom (or (localstorage/get "panel-width-ratio") - 0.35)) + panel-width-ratio (r/atom (localstorage/get "panel-width-ratio" 0.35)) showing? (r/atom false) dragging? (r/atom false) pin-to-bottom? (r/atom true)