Skip to content

Commit

Permalink
Fix the extra tag close
Browse files Browse the repository at this point in the history
  • Loading branch information
winsock authored May 31, 2018
1 parent 9a7f0f8 commit 5b4ca67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,11 @@ function parseGradients(svg) {
var color = parseColorToHex(stopStyles["stop-color"]).slice(-6)

androidXML += generateAttr('color', "#"+alpha+color, 3, null, true);
} else {
} else if (typeof stopStyles["stop-color"] !== "undefined") {
androidXML += generateAttr('color', parseColorToHex(stopStyles["stop-color"]), 3, null, true);
} else {
androidXML += " />";
}
androidXML += " />"
});
androidXML += '</gradient>';
gradients[current.attr("id")] = androidXML;
Expand Down

0 comments on commit 5b4ca67

Please sign in to comment.