Permalink
Browse files

also log currentUrl when logging errors by URL

  • Loading branch information...
1 parent 40cd050 commit 5ac2273c653d8b28d5fed73684b0c023d2b57279 Paul Baumgart committed Oct 31, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 filters/logger/logger.js
  2. +1 −1 package.json
View
@@ -33,7 +33,10 @@ UrlLogger.prototype = {
body.removeChild(img);
img = null;
};
+ var loc = document.location;
+ var currentUrl = loc.href.substr(loc.protocol.length + '//'.length + loc.hostname.length);
img.src = this._url + (this._url.indexOf('?') >= 0 ? '&' : '?') +
+ 'url=' + encodeURIComponent(currentUrl) +
'log=' + encodeURIComponent(log) +
'&type=' + encodeURIComponent(type);
View
@@ -3,7 +3,7 @@
"name": "jsbundle",
"description": "Simple, clean, and automatic bundling of your Node modules and packages for use in the browser.",
"keywords": "browser require bundle module package static-analysis",
- "version": "0.16.3",
+ "version": "0.16.4",
"repository": {
"type": "git",
"url": "git://github.com/proxv/jsbundle.git"

0 comments on commit 5ac2273

Please sign in to comment.