()
| 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. |
no test coverage detected