From 2bc503ec00e1164986080e97fd32d349de4e48ce Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:12:23 +0300 Subject: [PATCH] Fix eslint --- public/scripts/RossAscends-mods.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index f00d650cb..8bbb87c86 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -480,8 +480,7 @@ export function dragElement($elmnt) { let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; let height, width, top, left, right, bottom, - maxX, maxY, winHeight, winWidth, - topbar; + maxX, maxY, winHeight, winWidth; const elmntName = $elmnt.attr('id'); const elmntNameEscaped = $.escapeSelector(elmntName); @@ -540,11 +539,6 @@ export function dragElement($elmnt) { winWidth = window.innerWidth; winHeight = window.innerHeight; - topbar = document.getElementById('top-bar'); - const topbarstyle = getComputedStyle(topbar); - topBarFirstX = parseInt(topbarstyle.marginInline); - topBarLastY = parseInt(topbarstyle.height); - // Prepare state object if missing if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};