This commit is contained in:
Ben Zörb 2016-10-17 06:38:15 +02:00
parent 2a352b9499
commit 64a176f7b7
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ module.exports = function (html, styles, options) {
'</style>', ''
].join('\n' + targetIndent).replace(/(\r\n|\r|\n)[\s\t]+(\r\n|\r|\n)/g, '$1$2'));
if (links.length) {
if (links.length > 0) {
// modify links and ad clones to noscript block
$(links).each(function (idx, el) {
if (o.extract && !o.basePath) {

View File

@ -50,7 +50,7 @@
"mocha": "3.1.2",
"mockery": "1.7.0",
"read-package-json": "2.0.4",
"xo": "0.16.0"
"xo": "0.17.0"
},
"xo": {
"space": 4,