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

Method attachDismissHandler

src/lib/FancyError.ts:64–70  ·  view source on GitHub ↗

* Attach click handler to dismiss an error modal

(id: string)

Source from the content-addressed store, hash-verified

62 * Attach click handler to dismiss an error modal
63 */
64 private static attachDismissHandler (id: string): void {
65 $_(`[data-error="${id}"] button`).click(function () {
66 $_(`[data-error="${id}"]`).remove();
67 FancyError.pop();
68 });
69 Prism?.highlightAll();
70 }
71
72 /**
73 * Register an error template by ID.

Callers 2

popMethod · 0.80
showErrorMethod · 0.80

Calls 2

removeMethod · 0.65
popMethod · 0.45

Tested by

no test coverage detected