blob: 77ad5c855402064245e0d4f47bcd5e1267b063d5 [file] [log] [blame]
function checkScriptLoad() {
chrome.extension.onMessage.addListener(function(request, sender, response) {
if (request.msg == 'is_page_capturable') {
try {
if (isPageCapturable()) {
response({msg: 'capturable'});
} else {
response({msg: 'uncapturable'});
}
} catch(e) {
response({msg: 'loading'});
}
}
});
}
checkScriptLoad();