download index
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
ale 2024-09-23 02:49:15 +02:00
parent 852a55e6fa
commit 23b59e35b4
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
Total scanned <span id="instances">0</span> instances with <span id="peers">0</span> peers - <span Total scanned <span id="instances">0</span> instances with <span id="peers">0</span> peers - <span
id="created">0</span> created - <span id="updated">0</span> id="created">0</span> created - <span id="updated">0</span>
updated<br /> updated<br />
matrix <a id="matrix" href="/?matrix">off</a> - download json <a id="download_index" download matrix <a id="matrix" href="/?matrix">off</a> - download json <a id="download_index" href="#"
target="_blank">index</a> - target="_blank">index</a> -
by <a href="https://about.manalejandro.com" target="_blank">ale</a> by <a href="https://about.manalejandro.com" target="_blank">ale</a>
<s>&copy;</s>2024 <s>&copy;</s>2024

View File

@ -116,7 +116,7 @@ document.addEventListener('DOMContentLoaded', function () {
var res = await result.blob(), var res = await result.blob(),
a = document.createElement('a') a = document.createElement('a')
a.download = 'fediblock-index.json.gz' a.download = 'fediblock-index.json.gz'
a.href = URL.createObjectURL([res]) a.href = URL.createObjectURL(res)
a.type = 'application/x-gzip' a.type = 'application/x-gzip'
a.target = '_blank' a.target = '_blank'
a.dispatchEvent(new MouseEvent('click')) a.dispatchEvent(new MouseEvent('click'))