fix a typo
This commit is contained in:
		| @ -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; | ||||
|             } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user