mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Adjusted call to Pako.
This commit is contained in:
13
src/frontend/static/script/pako.min.js
Normal file
13
src/frontend/static/script/pako.min.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1,8 +1,10 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
<script type="text/javascript" src=static/script/pako.min.js>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var books = {{ books|books_tojson }};
|
var books = {{ books|books_tojson }};
|
||||||
let inflatedJSON = {};
|
let inflatedJSON = {};
|
||||||
|
const pako = require('pako');
|
||||||
inflatedJSON = JSON.parse(pako.inflate(books, { to: 'string'}));
|
inflatedJSON = JSON.parse(pako.inflate(books, { to: 'string'}));
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user