Adjusted call to Pako.

This commit is contained in:
th3r00t
2023-11-02 22:55:01 -04:00
parent 758a437883
commit 2ed6af0b72
2 changed files with 15 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,10 @@
<!doctype html>
{% block javascript %}
<script type="text/javascript" src=static/script/pako.min.js>
<script type="text/javascript">
var books = {{ books|books_tojson }};
let inflatedJSON = {};
const pako = require('pako');
inflatedJSON = JSON.parse(pako.inflate(books, { to: 'string'}));
</script>
{% endblock %}