mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 10:33:09 +02:00
made methods private
This commit is contained in:
parent
8f300cf460
commit
ccf5659ac3
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue