mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Use property for calculating handler name
Replace usage of .constructor.name with a separate property to avoid issue with JavaScript terser mangling the class name during minification for the web build.
This commit is contained in:
1 parent
f1f9b4d020
commit
392a7655c4
2 files changed
+4
-2
No files matched your search
@@ -433,7 +433,7 @@ function attachPluginMessages(link, pluginInfo, plugin) {
|
||||
throw new Error(`Type of ${name} message must start with "${pluginInfo.name}:"`);
|
||||
}
|
||||
|
||||
let handler = name + messageFormat.constructor.name + "Handler";
|
||||
let handler = name + messageFormat.handlerSuffix;
|
||||
if (plugin === null || !plugin[handler]) {
|
||||
messageFormat.attach(link);
|
||||
|
||||
|
||||
Reference in new issue
Block a user