mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix: home items duplicate when homepage loaded repeatedly
This commit is contained in:
@@ -2244,6 +2244,8 @@ async function loadHomePage() {
|
|||||||
// Remove all current elements in the main div to add new elements
|
// Remove all current elements in the main div to add new elements
|
||||||
const main = document.getElementById('main')
|
const main = document.getElementById('main')
|
||||||
|
|
||||||
|
main!.innerHTML = ''
|
||||||
|
|
||||||
if (!main) {
|
if (!main) {
|
||||||
console.error('Main element not found.')
|
console.error('Main element not found.')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user