mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-26 00:33:12 +09:00
Fix obsolete usage of EventSubscriber in template
This functionality was moved to the MapSubscriber class in e49b82842d.
This commit is contained in:
1 parent
a025d01294
commit
b69111dda3
2 files changed
+2
-2
No files matched your search
@@ -43,7 +43,7 @@ function MyTemplatePage() {
|
|||||||
|
|
||||||
export class WebPlugin extends BaseWebPlugin {
|
export class WebPlugin extends BaseWebPlugin {
|
||||||
//%if controller // Subscribing requires web content and the controller
|
//%if controller // Subscribing requires web content and the controller
|
||||||
subscribableData = new lib.EventSubscriber(ExampleSubscribableUpdate, this.control);
|
subscribableData = new lib.MapSubscriber(ExampleSubscribableUpdate, this.control);
|
||||||
|
|
||||||
//%endif
|
//%endif
|
||||||
async init() {
|
async init() {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function MyTemplatePage() {
|
|||||||
|
|
||||||
export class WebPlugin extends BaseWebPlugin {
|
export class WebPlugin extends BaseWebPlugin {
|
||||||
//%if controller // Subscribing requires web content and the controller
|
//%if controller // Subscribing requires web content and the controller
|
||||||
subscribableData = new lib.EventSubscriber(ExampleSubscribableUpdate, this.control);
|
subscribableData = new lib.MapSubscriber(ExampleSubscribableUpdate, this.control);
|
||||||
|
|
||||||
//%endif
|
//%endif
|
||||||
async init() {
|
async init() {
|
||||||
|
|||||||
Reference in new issue
Block a user