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

Method pop

src/lib/FancyError.ts:123–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 static pop (): void {
124 if (FancyError.isDevEnvironment() && typeof Prism !== 'undefined') {
125 if (FancyError.queue.length > 0) {
126 const error = FancyError.queue.pop()!;
127 $_('body').prepend(FancyError.generateModalHtml(error));
128 FancyError.attachDismissHandler(error.id);
129 }
130 }
131 }
132
133 /**
134 * Show an error by registered ID with context, or with explicit title/message/props.

Callers 15

didRevertMethod · 0.45
restoreSceneItemsMethod · 0.45
revertMethod · 0.45
revertMethod · 0.45
revertMethod · 0.45
willRollbackMethod · 0.45
revertMethod · 0.45
bindMethod · 0.45
afterRevertMethod · 0.45
revertMethod · 0.45
didRevertMethod · 0.45
didRevertMethod · 0.45

Calls 3

isDevEnvironmentMethod · 0.80
generateModalHtmlMethod · 0.80
attachDismissHandlerMethod · 0.80

Tested by

no test coverage detected