Skip to content

Commit

Permalink
Removed unnecessary method (stub?) for adding images.
Browse files Browse the repository at this point in the history
Images are deprecated on most browsers console.
  • Loading branch information
Joscha Rohmann committed Aug 15, 2016
1 parent 4373827 commit 7e84184
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions lib/blocks/jsdebug.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

/* globals blocks */
var customTypes = {};

blocks.debug = {
Expand Down Expand Up @@ -213,7 +213,7 @@ function addMethodReference(message, method, examplesExpanded) {

function addCodeTree(message, codeTree) {
var children = codeTree.children;
var lines;
//var lines;
var child;

message.beginSpan(highlightjs[codeTree.name]);
Expand Down Expand Up @@ -653,25 +653,6 @@ ConsoleMessage.prototype = {
return this;
},

addImage: function () {
(function () {
var faviconUrl = "http://d2c87l0yth4zbw.cloudfront.net/i/_global/favicon.png",
css = "background-image: url('" + faviconUrl + "');" +
"background-repeat: no-repeat;" +
"display: block;" +
"background-size: 13px 13px;" +
"padding-left: 13px;" +
"margin-left: 5px;",
text = "Do you like coding? Visit www.spotify.com/jobs";
if (navigator.userAgent.match(/chrome/i)) {
console.log(text + '%c', css);
} else {
console.log('%c ' + text, css);
}
})();
return this;
},

addElement: function (element) {
this._currentSpan.children.push({
type: 'element',
Expand Down Expand Up @@ -726,7 +707,7 @@ ConsoleMessage.prototype = {
message = this._newMessage('groupEnd');
message.text = ' ';
messages.push(message);
messages.push(this._newMessage())
messages.push(this._newMessage());
break;
case 'span':
this._printSpan(child, messages);
Expand Down

0 comments on commit 7e84184

Please sign in to comment.