We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c221b5 commit f83ca73Copy full SHA for f83ca73
1 file changed
web/templates/pages/home.html
@@ -501,8 +501,14 @@ <h3 class="text-xl font-medium tracking-tight mb-2 gradient-text">No apps yet</h
501
}
502
</style>
503
504
+<!-- Safely embed JSON data in a script tag -->
505
+<script type="application/json" id="apps-data">
506
+{{ apps|tojson }}
507
+</script>
508
+
509
<script>
-const APPS_DICT = JSON.parse('{{ apps|tojson|safe }}');
510
+// Parse the JSON data from the script tag
511
+const APPS_DICT = JSON.parse(document.getElementById('apps-data').textContent);
512
const ALL_APPS = Object.keys(APPS_DICT);
513
514
// Sort apps to put featured ones first
0 commit comments