new(basic.gblib): New batch features.
This commit is contained in:
		
							parent
							
								
									8b8ccab773
								
							
						
					
					
						commit
						515aae801b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -856,7 +856,7 @@ export class KBService implements IGBKBService {
 | 
			
		|||
  async saveHtmlPage(min, url: string, page: Page): Promise<string | null> {
 | 
			
		||||
    const response = await page.goto(url);
 | 
			
		||||
 | 
			
		||||
    if (response.headers && response.status() === 200) {
 | 
			
		||||
    if (response && response.headers && response.status() === 200) {
 | 
			
		||||
      const contentType = response.headers()['content-type'];
 | 
			
		||||
      if (contentType && contentType.includes('text/html')) {
 | 
			
		||||
        const buffer = await page.$eval('*', el => el['innerText']);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue