diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..713d500 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +.env diff --git a/renderer.js b/renderer.js index d5393cf..50366a5 100644 --- a/renderer.js +++ b/renderer.js @@ -24,9 +24,13 @@ function switchTab(tabName) { // Activate the selected tab and section if (tabName === 'downloads') { + document.getElementById('libraryTab').classList.remove('active'); + document.getElementById('librarySection').classList.remove('active'); document.getElementById('downloadsTab').classList.add('active'); document.getElementById('downloadsSection').classList.add('active'); } else if (tabName === 'library') { + document.getElementById('downloadsTab').classList.remove('active'); + document.getElementById('downloadsSection').classList.remove('active'); document.getElementById('libraryTab').classList.add('active'); document.getElementById('librarySection').classList.add('active'); loadLibrary(); // Load the library when switching to this tab