| Index: include.preload.js |
| =================================================================== |
| --- a/include.preload.js |
| +++ b/include.preload.js |
| @@ -45,17 +45,17 @@ function setElemhideCSSRules(selectors) |
| } |
| function sendRequests() |
| { |
| // Make sure this is really an HTML page, as Chrome runs these scripts on just about everything |
| if (!(document.documentElement instanceof HTMLElement)) |
| return; |
| - chrome.extension.sendRequest({reqtype: "get-settings", selectors: true, host: window.location.hostname}, function(response) |
| + chrome.extension.sendRequest({reqtype: "get-settings", selectors: true, frameUrl: window.location.href}, function(response) |
| { |
| setElemhideCSSRules(response.selectors); |
| }); |
| } |
| // In Chrome 18 the document might not be initialized yet |
| if (document.documentElement) |
| sendRequests(); |