@symbo.ls/scratch 2.10.134 → 2.10.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +862 -326
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
- package/src/system/svg.js +4 -1
package/src/system/svg.js
CHANGED
|
@@ -9,7 +9,10 @@ const DEF_OPTIONS = {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const setSVG = (val, key) => {
|
|
12
|
-
if (!val)
|
|
12
|
+
if (!val) {
|
|
13
|
+
if (CONFIG.verbose) console.warn('setSVG: val is not defined', key)
|
|
14
|
+
return
|
|
15
|
+
}
|
|
13
16
|
const CONFIG = getActiveConfig()
|
|
14
17
|
if (CONFIG.useSvgSprite) {
|
|
15
18
|
return convertSvgToSymbol(key, val)
|