Add new class to windows generation

This commit is contained in:
cyber-dream 2023-05-04 01:47:58 +03:00
parent 41ca6ba346
commit 809b7aa901

View File

@ -4,7 +4,7 @@ document.addEventListener('DOMContentLoaded', function() {
// console.log(window.screen.width)
wde = new WebDesktopEnvironment
if (!WebDesktopEnvironment.isMobile){
// WebDesktopEnvironment.Open("finder", ["/home/user"])
WebDesktopEnvironment.Open("finder", ["/home/user"])
// WebDesktopEnvironment.Open("blog-viewer", ["/home/user/blog/test-1.blog"])
// WebDesktopEnvironment.Open("personal-properties", ["kek"])
} else {
@ -143,7 +143,7 @@ class WebDesktopEnvironment{
document.body.querySelector('#windows-layer').appendChild(newWindow)
return newWindow
} else {
newWindow.setAttribute("class", "WindowFrame")
newWindow.setAttribute("class", "WindowFrame ConvexElement")
newWindow.setAttribute("windowId", "SuperUniqUUID") //TODO:
newWindow.style.width = width.toString() + "px"