From f127bef66b9c4c88e8094594a90ac4aad53b26e9 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Wed, 1 Dec 2021 00:14:47 +0800 Subject: [PATCH] Load new JSON format --- apps/authentiwatch/interface.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/authentiwatch/interface.html b/apps/authentiwatch/interface.html index 0b7774557..17b7648ea 100644 --- a/apps/authentiwatch/interface.html +++ b/apps/authentiwatch/interface.html @@ -322,7 +322,8 @@ function loadTokens() { Puck.eval(`require('Storage').read(${JSON.stringify('authentiwatch.json')})`,data=>{ Util.hideModal(); try { - tokens = JSON.parse(data); + let saved = JSON.parse(data); + tokens = saved.data; updateTokens(); } catch { tokens = [];