mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Add control reference to web plugins
Add reference to the Control instance in BaseWebPlugin for web plugin code to use in a similar manner to the instance reference in instance plugin code.
This commit is contained in:
1 parent
0a6e26bb2d
commit
6c19145734
2 files changed
+8
No files matched your search
@@ -46,6 +46,7 @@ export class Control extends libLink.Link {
|
||||
*/
|
||||
this.plugins = plugins;
|
||||
for (let plugin of plugins.values()) {
|
||||
plugin.control = this;
|
||||
libPlugin.attachPluginMessages(this, plugin);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user