From da8af8222d302811895616dba46f1a953fe64b03 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Wed, 10 May 2023 01:18:54 +0300 Subject: [PATCH] move from comments init css zoom and finder desktop --- resources/wde.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/wde.js b/resources/wde.js index 2fd59d3..c0afb22 100644 --- a/resources/wde.js +++ b/resources/wde.js @@ -20,14 +20,11 @@ class WebDesktopEnvironment{ static Applications = {}; static isMobile = false constructor(){ - // WebDesktopEnvironment.Open("finder", ["/home/user", "desktop", document.querySelector('#desktop-layer')]) - //TODO create key -desktop-mode - - + // WebDesktopEnvironment.isMobile = WebDesktopEnvironment.CheckMobile() + document.body.style.setProperty('--zoom', 1) this.wc = new WindowsCompositor() this.loadWDE() return - // WebDesktopEnvironment.isMobile = WebDesktopEnvironment.CheckMobile() // let applications = document.createElement("div") // applications.setAttribute('id', 'applications') @@ -66,7 +63,6 @@ class WebDesktopEnvironment{ }) } else{ - document.body.style.setProperty('--zoom', 1) // let desktopLayer = document.createElement("div") // desktopLayer.setAttribute('id', 'desktop-layer')