made methods private

This commit is contained in:
KevinWh0 2024-03-16 01:34:20 +01:00
parent 8f300cf460
commit ccf5659ac3
1 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class NotificationFavIconDot {
faviconEL = document.querySelector<HTMLLinkElement>('link[rel$=icon]') ?? this._createFaviconElem();
_createFaviconElem() {
private _createFaviconElem() {
const newLink = document.createElement('link');
newLink.rel = 'icon';
newLink.href = '/favicon.ico';
@ -105,12 +105,12 @@ class NotificationFavIconDot {
return newLink;
}
_drawIcon() {
private _drawIcon() {
if (!this.ctx || !this.favconImage) return;
this.ctx.drawImage(this.favconImage, 0, 0, this.favconImage.width, this.favconImage.height);
}
_drawDot() {
private _drawDot() {
if (!this.ctx || !this.favconImage) return;
this.ctx.beginPath();
this.ctx.arc(this.favconImage.width - 10, 10, 10, 0, 2 * Math.PI);