You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
amazon_kindle_download/popup.js

20 lines
568 B

chrome.runtime.onMessage.addListener(
function (request, sender, sendResponse) {
console.info(request)
if (request.status) {
document.querySelector("#status").innerText = request.status
}
if (request.title) {
document.querySelector("#title").innerText = request.title
}
if (request.start) {
NProgress.start()
}
if (request.progress) {
NProgress.set(request.progress)
}
if (request.done) {
NProgress.done()
}
}
);