soiz1 commited on
Commit
1f44418
·
verified ·
1 Parent(s): 18c8743

Update forge/ModGUI.js

Browse files
Files changed (1) hide show
  1. forge/ModGUI.js +3 -3
forge/ModGUI.js CHANGED
@@ -1,5 +1,5 @@
1
- function displayGui() {
2
- function gui() {
3
  if (document.querySelector("#eaglerpl_gui")) {
4
  document.querySelector("#eaglerpl_gui").remove();
5
  }
@@ -168,5 +168,5 @@ function displayGui() {
168
  ModAPI.events.callEvent("gui", {});
169
  document.body.appendChild(container);
170
  }
171
- gui();
172
  }
 
1
+ function displayGui(ModApi) {
2
+ function gui(ModAPI) {
3
  if (document.querySelector("#eaglerpl_gui")) {
4
  document.querySelector("#eaglerpl_gui").remove();
5
  }
 
168
  ModAPI.events.callEvent("gui", {});
169
  document.body.appendChild(container);
170
  }
171
+ gui(ModApi);
172
  }