Change to query selector

This commit is contained in:
cyber-dream 2023-04-13 20:09:01 +03:00
parent dc7bf44576
commit 9478c6c8dd

View File

@ -20,7 +20,7 @@ class Finder{
let fileView = new FileView("/kek", newWindow.querySelector(".FileTileView"), Finder.Click)
if (!WebDesktopEnvironment.isMobile){
let scrollBar = new WdeScrollBar(newWindow.children[1].children[1], newWindow.children[1].children[0])// TODO to querry selector
let closeButton = newWindow.children[0].children[0] //TODO to query selector
let closeButton = newWindow.querySelector("#closeWindowButton")
closeButton.addEventListener('click', function (params) {
WebDesktopEnvironment.CloseWindow(newWindow)
})