aripbae commited on
Commit
3cfc773
·
verified ·
1 Parent(s): 57afc14

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
index.js CHANGED
@@ -102,7 +102,9 @@ app.get('/ss', async (req, res) => {
102
  })
103
  } finally {
104
  console.timeEnd(label)
105
- await ctx.browser.close()
 
 
106
  }
107
  })
108
 
 
102
  })
103
  } finally {
104
  console.timeEnd(label)
105
+ await (
106
+ isGhost ? ctx : ctx.browser
107
+ ).close()
108
  }
109
  })
110