Merge pull request #928 from danielyxie/dev

Hotfix Mission.jsx fake unused import
This commit is contained in:
hydroflame 2021-05-03 17:25:19 -04:00 committed by GitHub
commit 7c9d6669f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
})()