Skip to content

Commit

Permalink
compare sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
vokymir committed May 11, 2024
1 parent a55df3a commit 8ba3e18
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions TScripts/Control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,29 @@ class Control{

const downloadLink = document.createElement('a');
downloadLink.href = URL.createObjectURL(jsonBlob);
downloadLink.download = 'data.json';
downloadLink.textContent = 'Download JSON';
downloadLink.download = 'object.json';
downloadLink.textContent = 'Download Object';

document.body.appendChild(downloadLink);

/*

downloadLink.addEventListener('click', () => {
URL.revokeObjectURL(downloadLink.href);
});
*/

const jsonBlobII = new Blob([b],{type: 'application/json'});

const downloadLinkII = document.createElement('a');
downloadLinkII.href = URL.createObjectURL(jsonBlobII);
downloadLinkII.download = 'tuple.json';
downloadLinkII.textContent = 'Download Tuple';

document.body.appendChild(downloadLinkII);


downloadLinkII.addEventListener('click', () => {
URL.revokeObjectURL(downloadLinkII.href);
});
}

static resumeTournament(){
Expand Down

0 comments on commit 8ba3e18

Please sign in to comment.