mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
Merge pull request #928 from danielyxie/dev
Hotfix Mission.jsx fake unused import
This commit is contained in:
commit
7c9d6669f7
4
dist/engine.bundle.js
vendored
4
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
36
dist/vendor.bundle.js
vendored
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;
|
||||
})()
|
||||
|
Loading…
Reference in New Issue
Block a user