Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Typo in main page example #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h3>Saving a value</h3>
<h3>Getting a value</h3>
<p>To retrieve the value of the key 'location', call window.remoteStorage.getItem with the key you'd like to retrieve and a callback that will receive the data. Callbacks must be used because data is loaded asynchronously, however, if memoization is on by default, your callback will be called immediately.
<p><pre>var ourCallback = function(value, key) {
alert('The value of ' + key ' + is ' + value);
alert('The value of ' + key + ' is ' + value);
};
window.remoteStorage.getItem('location', ourCallback);</pre>

Expand Down