fix favico badge not working on chrome
This commit is contained in:
parent
7bd18cda64
commit
008e711e11
|
@ -14,6 +14,7 @@ const createFaviconService = () => {
|
||||||
favcanvas.width = faviconWidth
|
favcanvas.width = faviconWidth
|
||||||
favcanvas.height = faviconHeight
|
favcanvas.height = faviconHeight
|
||||||
favimg = new Image()
|
favimg = new Image()
|
||||||
|
favimg.crossOrigin = 'anonymous'
|
||||||
favimg.src = favicon.href
|
favimg.src = favicon.href
|
||||||
favcontext = favcanvas.getContext('2d')
|
favcontext = favcanvas.getContext('2d')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue