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) {
111 let hours = time_spent % 24;111 let hours = time_spent % 24;
112 time_spent = Math.floor(time_spent / 24);112 time_spent = Math.floor(time_spent / 24);
113 let days = time_spent;113 let days = time_spent;
114 time_spent = '';114 let result = '';
115 if (days > 0) { time_spent += `${days} Days, `; }115 if (days > 0) { result += `${days} Days, `; }
116 if (hours > 0) { time_spent += `${hours} Hours, `; }116 if (hours > 0) { result += `${hours} Hours, `; }
117 if (minutes > 0) { time_spent += `${minutes} Minutes, `; }117 if (minutes > 0) { result += `${minutes} Minutes, `; }
118 time_spent += `${seconds} Seconds`;118 result += `${seconds} Seconds`;
119 return time_spent;119 return result;
120}120}
121121
122/**122/**
@@ -528,7 +528,8 @@ export function dragElement($elmnt) {
528 return;528 return;
529 }529 }
530530
531 const style = getComputedStyle($target[0]);531 const element = /** @type {HTMLElement} */ ($target[0]);
532 const style = getComputedStyle(element);
532 height = parseInt(style.height);533 height = parseInt(style.height);
533 width = parseInt(style.width);534 width = parseInt(style.width);
534 top = parseInt(style.top);535 top = parseInt(style.top);