Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08a33ff

Browse files
authored
Merge pull request HackYourFuture-CPH#133 from sofiiadidovych/patch-1
Correct localstorage link
2 parents f3d8248 + c78cfe9 commit 08a33ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript3/week1/homework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Hint: We have to change the weather api url, so we are not using city but positi
103103

104104
Imagine if a user did not have to either write a city or click the get my position button, but could just save the location. Lets do that!
105105

106-
When a user has gotten a location through either the input element or the geo location api, save that location using [localstorage](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API). Localstorage is a **way to save data** even when you close the browser.
106+
When a user has gotten a location through either the input element or the geo location api, save that location using [localstorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). Localstorage is a **way to save data** even when you close the browser.
107107

108108
Now when loading the page and there is a city in the localstorage, use that to get the current weather.
109109

0 commit comments

Comments
 (0)