Skip to content

Commit 3309874

Browse files
committed
Fixed issue with localStorage on Firefox.
1 parent b4a004c commit 3309874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261

262262
function sync() {
263263
if (navigator.onLine) {
264-
$.post('sync.php', localStorage, function(data) {
264+
$.post('sync.php', JSON.parse(JSON.stringify(localStorage)), function(data) {
265265
console.log(data);
266266
localStorage.setItem('index', JSON.stringify(data.index));
267267
for (k in data.entries) {

0 commit comments

Comments
 (0)