diff --git a/README.md b/README.md index b12e6ce..71e464c 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,9 @@ Only use it for content for which you own the rights and do not use it for pirac 7. popup.js calls pywidevine script using pyodide in browser ## Third-party libraries -* Pyodide -* Pywidevine -* json-view +* [Pyodide](https://github.com/pyodide/pyodide) ([MPL-2.0](https://github.com/pyodide/pyodide/blob/main/LICENSE)) +* [Pywidevine](https://github.com/devine-dl/pywidevine) ([GPL-3.0](https://github.com/devine-dl/pywidevine/blob/master/LICENSE)) +* [json-view](https://github.com/pgrabovets/json-view) ([MIT](https://github.com/pgrabovets/json-view/blob/master/LICENSE)) ### Big Thanks and inspired by https://github.com/emarsden/pssh-box-wasm/ diff --git a/popup_showHistory.js b/popup_showHistory.js index 94f858d..e9aaac4 100644 --- a/popup_showHistory.js +++ b/popup_showHistory.js @@ -1,6 +1,7 @@ function showHistory(){ chrome.storage.local.get(null, ((data) => { - jsonview.renderJSON(JSON.stringify(data), document.getElementById('histDisp')); + let tree=jsonview.renderJSON(JSON.stringify(data), document.getElementById('histDisp')); + jsonview.toggleNode(tree); })); document.getElementById('home').style.display='none'; document.getElementById('history').style.display='block';