Skip to content

Commit

Permalink
mark
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Dec 11, 2023
1 parent 269c58f commit 311bc93
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wikiblogarden/tadi-web/cloud/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ You can even store the password locally. That way, you don't need to type it in
<input type="password" oninput="handleInput()" />

<script>
const address = "https://todepond.com/cloud";
const input = document.querySelector("input");
const address = "https://todepond.com/cloud"
const input = document.querySelector("input")

<mark>input.value = localStorage.getItem("password") ?? "";</mark>;
<mark> input.value = localStorage.getItem("password") ?? ""

<mark>const handleInput = () => {
const handleInput = () => {
localStorage.setItem("password", input.value);
};</mark>
}</mark>

const setFavourite = (food) => {
remoteStorage.setItem("favourite-food", food, {
address,
password: input.value,
});
};
})
}
</script>
</pre>

Expand Down

0 comments on commit 311bc93

Please sign in to comment.