From 39d338e5bffeb89bf816730a713efecc9b401a0d Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 9 Mar 2022 13:19:07 +1300 Subject: [PATCH] Reset position in local storage on divider reset --- shared/naturalcrit/splitPane/splitPane.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 6d4dc95c4..12ed7c8cf 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -33,6 +33,7 @@ const SplitPane = createClass({ }, resetSize : function() { + window.localStorage.removeItem(this.props.storageKey); this.setState({ size : window.innerWidth / 2 });