- Fix repair bugs

- Minor html/js bugs from new template
- Other minor issues
This commit is contained in:
Mukhtar Akere
2025-07-13 06:30:02 +01:00
parent 604402250e
commit afe577bf2f
13 changed files with 54 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
// Download page functionality
class DownloadManager {
constructor() {
this.downloadFolder = '{{ .DownloadFolder }}' || '';
constructor(downloadFolder) {
this.downloadFolder = downloadFolder;
this.refs = {
downloadForm: document.getElementById('downloadForm'),
magnetURI: document.getElementById('magnetURI'),
@@ -242,9 +242,4 @@ class DownloadManager {
window.decypharrUtils.createToast('Please drop .torrent files only', 'warning');
}
}
}
// Initialize download manager when DOM is ready
document.addEventListener('DOMContentLoaded', () => {
window.downloadManager = new DownloadManager();
});
}