MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onAbort

Method onAbort

tools/mcsim/main.js:357–372  ·  view source on GitHub ↗
(application, status, reason)

Source from the content-addressed store, hash-verified

355
356/* EVENTS */
357 onAbort(application, status, reason) {
358 this.ffiPath = "";
359 this.archivePath = "";
360 this.libraryPath = "";
361 this.quitScreen();
362 this.launchScreen();
363 if (status) {
364 system.alert({
365 type:"stop",
366 prompt:"mcsim",
367 info:`XS abort: ${reason}!`,
368 buttons:["Cancel"]
369 }, ok => {
370 });
371 }
372 }
373 onOpenFile(application, path) {
374 if (this.onOpenFileList)
375 this.onOpenFileList.push(new String(path));

Callers

nothing calls this directly

Calls 2

quitScreenMethod · 0.95
launchScreenMethod · 0.95

Tested by

no test coverage detected