diff --git a/chrome/content/zotero/components/icons.jsx b/chrome/content/zotero/components/icons.jsx index 5a6bc2f31e..77d5eb84e9 100644 --- a/chrome/content/zotero/components/icons.jsx +++ b/chrome/content/zotero/components/icons.jsx @@ -26,12 +26,13 @@ function i(name, svgOrSrc, hasDPI=true) { const { className } = this.props if (typeof svgOrSrc == 'string') { + let finalSrc = svgOrSrc; if (hasDPI && window.devicePixelRatio >= 1.25) { let parts = svgOrSrc.split('.'); parts[parts.length-2] = parts[parts.length-2] + '@2x'; - svgOrSrc = parts.join('.') + finalSrc = parts.join('.') } - return + return } return (