13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
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);
|
|
}
|
|
}
|
|
} |