fix a typo

This commit is contained in:
2018-09-28 16:28:05 +08:00
parent 0a7cc09b1f
commit 556316a021

View File

@ -27,7 +27,7 @@ async function getData(itemsSelector, fieldSelectors, ...args) {
let arg = args.shift(); let arg = args.shift();
if (arg instanceof Array) { if (arg instanceof Array) {
urls = arg; urls = arg;
} else if (arg instanceof ExractResult) { } else if (arg instanceof ExtractResult) {
urls = arg.squash().filter(v => !!v); urls = arg.squash().filter(v => !!v);
} else { } else {
let urlTempl = arg; let urlTempl = arg;
@ -66,7 +66,7 @@ async function getData(itemsSelector, fieldSelectors, ...args) {
pms.then( pms.then(
results => { results => {
data.push(...results); data.push(...results);
resolve(new ExractResult(data)); resolve(new ExtractResult(data));
}, },
err => reject(err) err => reject(err)
); );
@ -153,7 +153,7 @@ function sendMessage(tab, req, cond, interval) {
console.log("request for", req.from); console.log("request for", req.from);
let tabAvailable = await getTabByID(tab.id); let tabAvailable = await getTabByID(tab.id);
if (!tabAvailable) { if (!tabAvailable) {
reject("Task interupted due to the target tab is closed."); reject("Task interrupted due to the target tab is closed.");
return; return;
} }