made methods private
This commit is contained in:
parent
8f300cf460
commit
ccf5659ac3
|
@ -97,7 +97,7 @@ class NotificationFavIconDot {
|
||||||
|
|
||||||
faviconEL = document.querySelector<HTMLLinkElement>('link[rel$=icon]') ?? this._createFaviconElem();
|
faviconEL = document.querySelector<HTMLLinkElement>('link[rel$=icon]') ?? this._createFaviconElem();
|
||||||
|
|
||||||
_createFaviconElem() {
|
private _createFaviconElem() {
|
||||||
const newLink = document.createElement('link');
|
const newLink = document.createElement('link');
|
||||||
newLink.rel = 'icon';
|
newLink.rel = 'icon';
|
||||||
newLink.href = '/favicon.ico';
|
newLink.href = '/favicon.ico';
|
||||||
|
@ -105,12 +105,12 @@ class NotificationFavIconDot {
|
||||||
return newLink;
|
return newLink;
|
||||||
}
|
}
|
||||||
|
|
||||||
_drawIcon() {
|
private _drawIcon() {
|
||||||
if (!this.ctx || !this.favconImage) return;
|
if (!this.ctx || !this.favconImage) return;
|
||||||
this.ctx.drawImage(this.favconImage, 0, 0, this.favconImage.width, this.favconImage.height);
|
this.ctx.drawImage(this.favconImage, 0, 0, this.favconImage.width, this.favconImage.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
_drawDot() {
|
private _drawDot() {
|
||||||
if (!this.ctx || !this.favconImage) return;
|
if (!this.ctx || !this.favconImage) return;
|
||||||
this.ctx.beginPath();
|
this.ctx.beginPath();
|
||||||
this.ctx.arc(this.favconImage.width - 10, 10, 10, 0, 2 * Math.PI);
|
this.ctx.arc(this.favconImage.width - 10, 10, 10, 0, 2 * Math.PI);
|
||||||
|
|
Loading…
Reference in New Issue