From f48f62fb5245970b400b6aedcd62c2e1296fa074 Mon Sep 17 00:00:00 2001 From: James Harris Date: Thu, 16 Aug 2018 20:29:53 +0100 Subject: [PATCH] refactor: only include xmlns:xlink for icon badges --- lib/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 0fc3b38..a6aad72 100644 --- a/lib/index.js +++ b/lib/index.js @@ -12,16 +12,17 @@ module.exports = ({ subject, status, color, style, emoji, icon, iconWidth = 13 } const sbRectWidth = sbTextWidth + 10.2 + iconSpanWidth const stRectWidth = stTextWidth + 10 const width = sbRectWidth + stRectWidth + const xlink = icon ? ' xmlns:xlink="http://www.w3.org/1999/xlink"' : '' if (style === 'flat') { return ` - ${subject} + ${subject} ${status} ${status} @@ -32,7 +33,7 @@ module.exports = ({ subject, status, color, style, emoji, icon, iconWidth = 13 } } return ` - +