Fix type errors in Ross-mods.js
| @@ -111,12 +111,12 @@ export function humanizeGenTime(total_gen_time) { | ||
| 111 | 111 | let hours = time_spent % 24; |
| 112 | 112 | time_spent = Math.floor(time_spent / 24); |
| 113 | 113 | let days = time_spent; |
| 114 | 114 | time_spentlet result = ''; |
| 115 | 115 | if (days > 0) { time_spentresult += `${days} Days, `; } |
| 116 | 116 | if (hours > 0) { time_spentresult += `${hours} Hours, `; } |
| 117 | 117 | if (minutes > 0) { time_spentresult += `${minutes} Minutes, `; } |
| 118 | 118 | time_spentresult += `${seconds} Seconds`; |
| 119 | 119 | return time_spentresult; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
| @@ -528,7 +528,8 @@ export function dragElement($elmnt) { | ||
| 528 | 528 | return; |
| 529 | 529 | } |
| 530 | 530 | |
| 531 | 531 | const styleelement = getComputedStyle/** @type {HTMLElement} */ ($target[0]); |
| 532 | + const style = getComputedStyle(element); | |
| 532 | 533 | height = parseInt(style.height); |
| 533 | 534 | width = parseInt(style.width); |
| 534 | 535 | top = parseInt(style.top); |