Skip to content

Commit 63d2e6f

Browse files
authored
save cid to local-storage on Load (#17)
1 parent acb63c8 commit 63d2e6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class Main extends React.Component {
6363
this.setState({ error: error.toString() });
6464
return;
6565
}
66+
67+
localStorage.setItem("preferenceCID", cid);
6668
this.setState({
6769
cid,
6870
preferences,

0 commit comments

Comments
 (0)