Permalink
Browse files

added test so that we only post the message to web pages. Blunt, migh…

…t need to include resource and chrome?
  • Loading branch information...
1 parent cb4233d commit c573dc7363badc174e69886762189f32a880fef9 @canuckistani committed Jan 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 data/dotjs.js
View
@@ -13,5 +13,8 @@
$('head').append($('<style>').text(msg.css));
}
});
- self.postMessage(document.URL);
+ // we only operate on http urls? what about chrome or resource?
+ if (document.URL.indexOf('http') === 0) {
+ self.postMessage(document.URL);
+ }
}(jQuery.noConflict(true)));

0 comments on commit c573dc7

Please sign in to comment.