mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
nicer catches
This commit is contained in:
parent
a9bad939ba
commit
663072ec47
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ class FavIconDot {
|
||||||
if (this.faviconEL) {
|
if (this.faviconEL) {
|
||||||
try {
|
try {
|
||||||
URL.revokeObjectURL(this.faviconEL.href);
|
URL.revokeObjectURL(this.faviconEL.href);
|
||||||
} catch (error) {
|
} catch {
|
||||||
// the href was probably not an object URL
|
// the href was probably not an object URL
|
||||||
}
|
}
|
||||||
this.canvas.toBlob((blob) => {
|
this.canvas.toBlob((blob) => {
|
||||||
|
@ -133,7 +133,7 @@ export async function setFavIconDot(visible: boolean) {
|
||||||
try {
|
try {
|
||||||
(icon as FavIconDot).setVisible(visible);
|
(icon as FavIconDot).setVisible(visible);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//Probably failed due to CORS and a dirty canvas
|
console.error('error setting notification dot', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue