Change to query selector
This commit is contained in:
parent
dc7bf44576
commit
9478c6c8dd
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user