From f2d9e553853023e261a147d0bfd0150a8102cf28 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Wed, 15 Mar 2023 15:33:56 +0300 Subject: [PATCH] change address and parent elem for window moving --- resources/wde.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/wde.js b/resources/wde.js index 67a523d..7f25ed6 100644 --- a/resources/wde.js +++ b/resources/wde.js @@ -7,7 +7,7 @@ class WebDesktopEnvironment{ constructor(){ this.wc = new WindowsCompositor - fetch("http://localhost:8080/getmockapp" /*, options */) + fetch("http://localhost:8080/applications/personalproperties/test" /*, options */) .then((response) => response.text()) .then((html) => { document.getElementById("WindowsLayer").innerHTML = html; @@ -54,7 +54,7 @@ class WindowsCompositor{ catchClick(event){ switch (true) { case event.target.className == "WindowDragArea": - this.movingElement = event.target.parentElement + this.movingElement = event.target.parentElement.parentElement.parentElement break; default: break;