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