use const not var
This commit is contained in:
parent
3626f8cb97
commit
aa512d1a33
2 changed files with 3 additions and 4 deletions
|
|
@ -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`);
|
saveAs(blob, `${this.torrent.rdName}.torrent`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,10 @@
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
var baseElement = document.querySelector("base");
|
const baseElement = document.querySelector("base");
|
||||||
|
|
||||||
if (baseElement) {
|
if (baseElement) {
|
||||||
var hrefValue = baseElement.getAttribute("href");
|
window["_app_base"] = baseElement.getAttribute("href");
|
||||||
window["_app_base"] = hrefValue;
|
|
||||||
console.log("setting base href to " + window["_app_base"]);
|
console.log("setting base href to " + window["_app_base"]);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue