mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
6bde8a2219
commit
ff3fc3b94b
14 files changed
+21
-21
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user