notification-bubble.ts

13 lines | 348 B Blame History Raw Download
import { BaseElement } from "../../../shared/_base";
import './notification-bubble.less';

export class NotificationBubble extends BaseElement {
    onInit(): void {

        if (!this.classList.contains("syntax-error")) {
            setTimeout(() => {
                this.parentElement?.removeChild(this);
            }, 4000);
        }
    }
}