You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I render multiple avatars in a custom avatar editor and when some of them are removed from the DOM, then the remaining svg does not render well anymore on Safari only.
varsvgSel='#root > div > div > main > main > div > div > div.avatar-main-preview > svg';document.querySelectorAll(svgSel+' [mask^="url("]').forEach(node=>{varattributMask=node.getAttribute("mask");node.setAttribute("mask",+attributMask.replace('url(','url('+location.href));});document.querySelectorAll(svgSel+' [filter^="url("]').forEach(node=>{varattributFilter=node.getAttribute("filter");node.setAttribute("filter",+attributFilter.replace('url(','url('+location.href));});document.querySelectorAll(svgSel+' [fill^="url("]').forEach(node=>{varattributFill=node.getAttribute("fill");node.setAttribute("fill",+attributFill.replace('url(','url('+location.href));});
I render multiple avatars in a custom avatar editor and when some of them are removed from the DOM, then the remaining svg does not render well anymore on Safari only.
I have tried the following code (shivam1410/fangpenlin-avataaars-generator-angular#5) but it did not work, on the contrary, it broke the svg:
Could this be because:
My confusion here is:
Thank you!
The text was updated successfully, but these errors were encountered: