Remove .js suffix in require paths

Remove the .js suffix in require paths to make requires consistent
across the project.
This commit is contained in:
Hornwitser committed 2019-10-28 19:45:34 +01:00
1 parent 6bde8a2219
commit ff3fc3b94b
14 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = class remoteCommands {
this.messageInterface = messageInterface;
this.config = mergedConfig;
this.socket = extras.socket;
const pluginManager = require("lib/manager/pluginManager.js");
const pluginManager = require("lib/manager/pluginManager");
// const modManager = require("lib/manager/modManager");
this.socket.on("hello", () => {
this.socket.emit("registerServerManager");
+2 -2
View File
@@ -22,10 +22,10 @@ class masterPlugin {
// this.banlist = getDatabaseSync("database/banlist.json").banlist || [];
// initialize web API
require("./js/api-endpoints.js")(this);
require("./js/api-endpoints")(this);
// expose UI elements embedded in the master
this.ui = require("./js/ui.js").injectThis(this).ui;
this.ui = require("./js/ui").injectThis(this).ui;
this.serverSockets = {};