start contentscript: don't query href twice

This commit is contained in:
Chris 2015-03-04 02:01:04 -07:00
parent d7587745cc
commit fbddda46bb

View file

@ -156,11 +156,12 @@ var hideElements = function(selectors) {
} }
}; };
var url = window.location.href;
localMessager.send( localMessager.send(
{ {
what: 'retrieveDomainCosmeticSelectors', what: 'retrieveDomainCosmeticSelectors',
pageURL: window.location.href, pageURL: url,
locationURL: window.location.href locationURL: url
}, },
filteringHandler filteringHandler
); );