use const not var

This commit is contained in:
Cucumberrbob 2025-06-07 17:55:28 +01:00
parent 3626f8cb97
commit aa512d1a33
No known key found for this signature in database
GPG key ID: 2B935C47401C3614
2 changed files with 3 additions and 4 deletions

View file

@ -108,7 +108,7 @@ export class TorrentComponent implements OnInit {
}),
);
var blob = new Blob([byteArray], { type: 'application/x-bittorrent' });
const blob = new Blob([byteArray], { type: 'application/x-bittorrent' });
saveAs(blob, `${this.torrent.rdName}.torrent`);
}

View file

@ -6,11 +6,10 @@
<base href="/" />
<script>
(function () {
var baseElement = document.querySelector("base");
const baseElement = document.querySelector("base");
if (baseElement) {
var hrefValue = baseElement.getAttribute("href");
window["_app_base"] = hrefValue;
window["_app_base"] = baseElement.getAttribute("href");
console.log("setting base href to " + window["_app_base"]);
}
})();