update screenshot
This commit is contained in:
		
							parent
							
								
									01965a9745
								
							
						
					
					
						commit
						613eb22614
					
				| 
						 | 
				
			
			@ -13,7 +13,7 @@ export const screenShot = async (filename, time) => {
 | 
			
		|||
    const bodyHandle = await page.$("body");
 | 
			
		||||
    const { height } = await bodyHandle.boundingBox();
 | 
			
		||||
    await bodyHandle.dispose();
 | 
			
		||||
    await page.setViewport({ width: 1920, height: 500 });
 | 
			
		||||
    await page.setViewport({ width: 1920, height: 800 });
 | 
			
		||||
    setTimeout(async () => {
 | 
			
		||||
      await page.screenshot({ path: "/home/screenshot/"+time+".png" });
 | 
			
		||||
      browser.close();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,4 +30,5 @@
 | 
			
		|||
    /* border-color: -internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133)); */
 | 
			
		||||
    /* border-image: initial; */
 | 
			
		||||
    padding: 5px;
 | 
			
		||||
    font-size: 1.2rem;
 | 
			
		||||
  }
 | 
			
		||||
		Loading…
	
		Reference in New Issue