1 var reload = function(responseHandler
) {
2 window
.location
.href
= window
.location
.href
;
5 var execute = function(code
, responseHandler
) {
10 // there was a circular reference in jQueries exceptions that
11 // sendResponse didn't like
12 exception
= {name
: exc
.name
, message
: exc
.message
};
14 responseHandler(exception
);
17 chrome
.extension
.onRequest
.addListener(
18 function(data
, sender
, responseHandler
) {
20 reload(responseHandler
);
21 } else if (data
.code
) {
22 execute(data
.code
, responseHandler
);
24 responseHandler({name
: "InvalidArgumentException",
25 message
: "Argument to content script not understood."});
This page took 0.652488 seconds and 4 git commands to generate.