ESM: Added BackgroundWorkerWaiter for running Magic on output in the background

This commit is contained in:
n1474335 2018-06-03 17:33:13 +01:00
parent 37c8d1b7ea
commit 1ef4f71d8b
6 changed files with 229 additions and 8 deletions

View file

@ -15,6 +15,7 @@ import OptionsWaiter from "./OptionsWaiter";
import HighlighterWaiter from "./HighlighterWaiter";
import SeasonalWaiter from "./SeasonalWaiter";
import BindingsWaiter from "./BindingsWaiter";
import BackgroundWorkerWaiter from "./BackgroundWorkerWaiter";
/**
@ -68,6 +69,7 @@ class Manager {
this.highlighter = new HighlighterWaiter(this.app, this);
this.seasonal = new SeasonalWaiter(this.app, this);
this.bindings = new BindingsWaiter(this.app, this);
this.background = new BackgroundWorkerWaiter(this.app, this);
// Object to store dynamic handlers to fire on elements that may not exist yet
this.dynamicHandlers = {};
@ -84,6 +86,7 @@ class Manager {
this.recipe.initialiseOperationDragNDrop();
this.controls.autoBakeChange();
this.bindings.updateKeybList();
this.background.registerChefWorker();
this.seasonal.load();
}