Files
code-editor/codeeditor-app/elements/notification-bubbles/notification-bubble.ts
T

13 lines
335 B
TypeScript

import { BaseElement } from "../_base";
import './notification-bubble.less';
export class NotificationBubble extends BaseElement {
onInit(): void {
if (!this.classList.contains("syntax-error")) {
setTimeout(() => {
this.parentElement?.removeChild(this);
}, 4000);
}
}
}