re-disable GUN local storage

This commit is contained in:
Jesse D. McDonald 2020-03-28 19:36:28 -05:00
parent 51ee683bad
commit 8e66eb3537
1 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
'use strict';
$(function (){
/* workaround for persistent errors accumulating which break synchronization */
if ('localStorage' in window) {
window.localStorage.removeItem('gun/');
window.localStorage.removeItem('gap/gun/');
}
let gun = Gun({
peers: ['https://jessemcdonald.info/gun'],
/* workaround for persistent errors accumulating which break synchronization */
//localStorage: false,
});
const PS = window.PacoSako;