Fix type errors in Ross-mods.js

a28a33cb026f18b1bc20e839578c7be474aa6a5a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +8 -7Showing whitespace changes
public/scripts/RossAscends-mods.js+8 -7
@@ -111,12 +111,12 @@ export function humanizeGenTime(total_gen_time) {
111111 let hours = time_spent % 24;
112112 time_spent = Math.floor(time_spent / 24);
113113 let days = time_spent;
114114 time_spentlet result = '';
115115 if (days > 0) { time_spentresult += `${days} Days, `; }
116116 if (hours > 0) { time_spentresult += `${hours} Hours, `; }
117117 if (minutes > 0) { time_spentresult += `${minutes} Minutes, `; }
118118 time_spentresult += `${seconds} Seconds`;
119119 return time_spentresult;
120120}
121121
122122/**
@@ -528,7 +528,8 @@ export function dragElement($elmnt) {
528528 return;
529529 }
530530
531531 const styleelement = getComputedStyle/** @type {HTMLElement} */ ($target[0]);
532+ const style = getComputedStyle(element);
532533 height = parseInt(style.height);
533534 width = parseInt(style.width);
534535 top = parseInt(style.top);