Skip to content

Commit

Permalink
Update core2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jimboy3100 committed Dec 19, 2017
1 parent 2e54252 commit 5ad0270
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions old/core2.js
@@ -1,10 +1,9 @@
//MAP AUTO START

CanvasRenderingContext2D.prototype.drawImage = CanvasRenderingContext2D.prototype.drawImage, CanvasRenderingContext2D.prototype.drawImage = function() {
CanvasRenderingContext2D.prototype._drawImage = CanvasRenderingContext2D.prototype.drawImage, CanvasRenderingContext2D.prototype.drawImage = function() {
if (arguments[0].src) {
if ("http://agar.io/img/background.png" == arguments[0].src) {
arguments[0].src = "";
}
}
this.drawImage.apply(this, arguments);
this._drawImage.apply(this, arguments);
};

0 comments on commit 5ad0270

Please sign in to comment.