MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / shouldProceed

Method shouldProceed

src/actions/Canvas.ts:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 static override async shouldProceed(): Promise<void> {
28 const element = this.engine.element();
29
30 element.find('[data-component="canvas-container"]').each((element: any) => {
31 const { mode, canvas } = element.props;
32 if (['immersive', 'modal'].indexOf(mode) > -1) {
33 throw new Error(`Canvas "${canvas}" must be removed before proceeding.`);
34 }
35 });
36 }
37
38 static override async onLoad(): Promise<void> {
39 const state = this.engine.state('canvas');

Callers

nothing calls this directly

Calls 2

eachMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected