diff --git a/Webpage/index.html b/Webpage/index.html index 6e49b6c..19f8ec6 100644 --- a/Webpage/index.html +++ b/Webpage/index.html @@ -16,7 +16,6 @@ } function localSet(key, val){ - localStorage.setItem(key, JSON.stringify(val)); } @@ -28,14 +27,14 @@ function documentExists(id){ var docsList = localGet("DOCUMENTS_MANIFEST"); return docsList.includes(id); - // Array#includes seems to be compatible with mobile device browsers } function writeDocument(id, name, paths, undone){ var obj = { name: name, paths: paths, - undone: undone + undone: undone, + time: (new Date()).toLocaleString() }; localSet(id, obj); @@ -54,6 +53,10 @@ window.location.href = window.location.origin + "/?" + id; } + function goBack(){ + window.location.href = window.location.origin; + } +
-