Skip to content

Commit a42db53

Browse files
committed
Merge pull request #106 from rdepena/patch-1
removed references to deprecated add functions.
2 parents 0a256f3 + b1ea75c commit a42db53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h6>JS Example</h6>
8787
// Removes all local storage
8888
localStorageService.clearAll();
8989
// You can also play with cookies the same way
90-
localStorageService.cookie.add('localStorageKey','I am a cookie value now');
90+
localStorageService.cookie.set('localStorageKey','I am a cookie value now');
9191
}</pre>
9292

9393
<h3>API Access</h3>
@@ -109,7 +109,7 @@ <h3>API Access</h3>
109109
<td>Boolean for success</td>
110110
</tr>
111111
<tr>
112-
<td><code>add</code></td>
112+
<td><code>set</code></td>
113113
<td><small>key, value</small></td>
114114
<td>Adds a key-value pair to the browser local storage</td>
115115
<td>Boolean for success</td>
@@ -134,7 +134,7 @@ <h3>API Access</h3>
134134
</tr>
135135
<tr>
136136
<td><code>cookie</code></td>
137-
<td><small>add | get | remove | clearAll</small></td>
137+
<td><small>set | get | remove | clearAll</small></td>
138138
<td>Each function within cookie uses the same arguments as the coresponding local storage functions</td>
139139
<td>n/a</td>
140140
</tr>

0 commit comments

Comments
 (0)