From 2882949808e65fe72cadf5bbb33be5c7f84bbbe9 Mon Sep 17 00:00:00 2001 From: Julian Hundeloh Date: Sun, 4 Oct 2020 13:16:40 +0000 Subject: [PATCH] fix: make radius configurable --- src/favicon.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/favicon.ts b/src/favicon.ts index 7b5676c..94649f0 100644 --- a/src/favicon.ts +++ b/src/favicon.ts @@ -6,6 +6,7 @@ export type Options = { backgroundColor: string color: string indicator: string + radius: number } type Favicon = HTMLLinkElement @@ -18,6 +19,7 @@ export const DefaultOptions: Options = { backgroundColor: '#424242', color: '#ffffff', indicator: '!', + radius: 3, } // Get all favicons of the page @@ -209,7 +211,7 @@ const drawBubble = ( const left = size - width const bottom = 16 * ratio const right = 16 * ratio - const radius = 3 * ratio + const radius = options.radius * ratio // Bubble context.save()