Open torrent download links in new tab

This commit is contained in:
√(noham)²
2025-12-23 23:11:50 +01:00
parent 917e536468
commit fffa4ef64c
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ chrome.storage.sync.get(['yggToken'], function (value) {
downloadIcon.setAttribute('src', chrome.runtime.getURL("img/download.png"));
downloadButton.appendChild(downloadIcon);
downloadButton.setAttribute('href', "https://yggapi.eu/torrent/" + torrentId + "/download?passkey=" + value.yggToken);
downloadButton.setAttribute('target', '_blank');
cell.appendChild(downloadButton);
}
}