Skip to content

Commit 7795031

Browse files
committed
Merge pull request #1095 from glen-84/patch-1
Fix #1094
2 parents 3c986f0 + 8e25c8c commit 7795031

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

lib/logger.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,19 @@ module.exports.callbacks = {
133133
logUrls(bs.options.get("urls").toJS());
134134
}
135135

136-
if (type === "snippet" && bs.options.get("logSnippet")) {
136+
if (type === "snippet") {
137137

138-
logger.info(
139-
"{bold:Copy the following snippet into your website, " +
140-
"just before the closing {cyan:</body>} tag"
141-
);
138+
if (bs.options.get("logSnippet")) {
142139

143-
logger.unprefixed("info",
144-
messages.scriptTags(bs.options)
145-
);
140+
logger.info(
141+
"{bold:Copy the following snippet into your website, " +
142+
"just before the closing {cyan:</body>} tag"
143+
);
144+
145+
logger.unprefixed("info",
146+
messages.scriptTags(bs.options)
147+
);
148+
}
146149

147150
logUrls(bs.options.get("urls").filter(function (value, key) {
148151
return key.slice(0, 2) === "ui";

0 commit comments

Comments
 (0)