notification-bubble.ts

13 lines | 335 B Blame History Raw Download
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);
        }
    }
}