From 31b9bc70b39046ef8e7111d3c52f212d6ba4c703 Mon Sep 17 00:00:00 2001 From: Jesse McDonald Date: Fri, 13 Mar 2020 02:24:23 -0500 Subject: [PATCH] temporary fix for accumulated errors in local storage --- js/chess.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/chess.js b/js/chess.js index e85e6ce..f980113 100644 --- a/js/chess.js +++ b/js/chess.js @@ -1,5 +1,10 @@ 'use strict'; -var gun = Gun(['https://jessemcdonald.info/gun']); + +var gun = Gun({ + peers: ['https://jessemcdonald.info/gun'], + /* workaround for persistent errors accumulating which break synchronization */ + localStorage: false, +}); let initialBoard = (function (){ var init = JSON.stringify({