blob: 77ad5c855402064245e0d4f47bcd5e1267b063d5 [file] [log] [blame]
avm9996304def3e2016-11-27 22:53:05 +01001function checkScriptLoad() {
2 chrome.extension.onMessage.addListener(function(request, sender, response) {
3 if (request.msg == 'is_page_capturable') {
4 try {
5 if (isPageCapturable()) {
6 response({msg: 'capturable'});
7 } else {
8 response({msg: 'uncapturable'});
9 }
10 } catch(e) {
11 response({msg: 'loading'});
12 }
13 }
14 });
15}
16
17checkScriptLoad();