Skip to content

Commit cf6b6ab

Browse files
committed
Merge pull request #111 from fippo/fix-non-module-logging
unbreak logging, fixes #110
2 parents 8c00af5 + 0fd9add commit cf6b6ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adapter.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ var webrtcMinimumVersion = null;
2525
var webrtcUtils = {
2626
log: function() {
2727
// suppress console.log output when being included as a module.
28-
if (!(typeof module !== 'undefined' ||
29-
typeof require === 'function') && (typeof define === 'function')) {
30-
console.log.apply(console, arguments);
28+
if (typeof module !== 'undefined' ||
29+
typeof require === 'function' && typeof define === 'function') {
30+
return;
3131
}
32+
console.log.apply(console, arguments);
3233
}
3334
};
3435

0 commit comments

Comments
 (0)