mirror of
https://github.com/koloml/furbooru-tagging-assistant.git
synced 2025-12-24 07:12:57 +00:00
Changing the way components initialized, added wrapper for media boxes
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import {createMaintenancePopup} from "$lib/components/MaintenancePopup.js";
|
||||
import {createMediaBoxTools} from "$lib/components/MediaBoxToolsEvents.js";
|
||||
import {initializeMediaBox} from "$lib/components/MediaBoxWrapper.js";
|
||||
|
||||
document.querySelectorAll('.media-box').forEach(mediaBoxElement => {
|
||||
mediaBoxElement.appendChild(
|
||||
initializeMediaBox(mediaBoxElement, [
|
||||
createMediaBoxTools(
|
||||
createMaintenancePopup()
|
||||
)
|
||||
);
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user