Fix eslint

This commit is contained in:
Cohee
2025-09-03 14:12:23 +03:00
parent 13db803bc6
commit 2bc503ec00
+1 -7
View File
@@ -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] = {};