Fix eslint
| @@ -480,8 +480,7 @@ export function dragElement($elmnt) { | ||
| 480 | 480 | |
| 481 | 481 | let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; |
| 482 | 482 | let height, width, top, left, right, bottom, |
| 483 | 483 | maxX, maxY, winHeight, winWidth,; |
| 484 | - topbar; | |
| 485 | 484 | |
| 486 | 485 | const elmntName = $elmnt.attr('id'); |
| 487 | 486 | const elmntNameEscaped = $.escapeSelector(elmntName); |
| @@ -540,11 +539,6 @@ export function dragElement($elmnt) { | ||
| 540 | 539 | winWidth = window.innerWidth; |
| 541 | 540 | winHeight = window.innerHeight; |
| 542 | 541 | |
| 543 | - topbar = document.getElementById('top-bar'); | |
| 544 | - const topbarstyle = getComputedStyle(topbar); | |
| 545 | - topBarFirstX = parseInt(topbarstyle.marginInline); | |
| 546 | - topBarLastY = parseInt(topbarstyle.height); | |
| 547 | - | |
| 548 | 542 | // Prepare state object if missing |
| 549 | 543 | if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {}; |
| 550 | 544 | |