Hotfix Mission.jsx fake unused import

This commit is contained in:
Olivier Gagnon 2021-05-03 17:24:39 -04:00
parent b99711788f
commit c6f0551709
4 changed files with 27 additions and 22 deletions

File diff suppressed because one or more lines are too long

36
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -13,6 +13,11 @@ import { isString } from "../utils/helpers/isString";
import { clearEventListeners } from "../utils/uiHelpers/clearEventListeners";
// For some reason `jsplumb` needs to be imported exactly like this,
// lowercase p, and later in the code used as `jsPlumb` uppercase P. wtf.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import jsplumb from "jsplumb";
import React from "react";
import ReactDOM from "react-dom";
@ -822,7 +827,7 @@ HackingMission.prototype.updateNodeDomElement = function(nodeObj) {
}
/**
* Gets a Node DOM element's corresponding Node object using its
* Gets a Node DOM elements corresponding Node object using its
* element id. Function accepts either the DOM element object or the ID as
* an argument
*/

@ -35,7 +35,7 @@ function convertTimeMsToTimeElapsedString(time: number, showMilli=false): string
const secTruncMinutes: number = secTruncHours % secondPerMinute;
const milliTruncSec: string = (() => {
let str: string = `${time % millisecondsPerSecond}`;
let str = `${time % millisecondsPerSecond}`;
while(str.length < 3) str = "0"+str;
return str;
})()