Skip to content

Commit

Permalink
Update base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MapMaths authored Aug 29, 2022
1 parent 876a4cd commit f43cf12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @description Setting up environment for JSON files.
*/

randomID(length) {
function randomID(length) {
// Generate a random HEX ID, by the given length.
let id = "";
for (let i = 0; i < length; i++) {
Expand All @@ -18,7 +18,7 @@ randomID(length) {
return id;
}

generateNewElementID(json) {
function generateNewElementID(json) {
let elements = JSON.parse(json.StatusSave).Elements;
let repeated = true;
let id = '';
Expand Down

0 comments on commit f43cf12

Please sign in to comment.