fix: duplicate styleJSON.sprite
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
1e50e174ef
commit
c08f8844f1
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ export const serve_style = {
|
|||
}
|
||||
|
||||
let spritePaths = [];
|
||||
if (styleJSON.sprite && styleJSON.sprite) {
|
||||
if (styleJSON.sprite) {
|
||||
if (Array.isArray(styleJSON.sprite)) {
|
||||
styleJSON.sprite.forEach((spriteItem) => {
|
||||
if (!httpTester.test(spriteItem.url)) {
|
||||
|
|
Loading…
Reference in a new issue