Skip to content

Commit 000c841

Browse files
authored
Dump console.log to dev only for this instance (#1662)
* Do this since I keep running into this between the browsers. * Spell it out in human readable terms. Post #1661 1599 Auto-merge
1 parent 335cc32 commit 000c841

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,9 @@ exports.uploadScript = function (aReq, aRes, aNext) {
16791679
}
16801680

16811681
// Reject non-js file
1682-
console.log(script.type);
1682+
if (isDev) {
1683+
console.log('Upload Script MIME Content-Type is `' + script.type + '`');
1684+
}
16831685
switch (script.type) {
16841686
case 'application/x-javascript': // #872 #1661
16851687
case 'application/javascript': // #1599

0 commit comments

Comments
 (0)