From 809b7aa901588e75acfb0803900c2fdd8c1cdac3 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Thu, 4 May 2023 01:47:58 +0300 Subject: [PATCH] Add new class to windows generation --- resources/wde.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/wde.js b/resources/wde.js index 6a39954..4a9017c 100644 --- a/resources/wde.js +++ b/resources/wde.js @@ -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"