Skip to content

Commit

Permalink
feat: add clear option to release method
Browse files Browse the repository at this point in the history
  • Loading branch information
halwu(吴浩麟) committed Aug 18, 2017
1 parent 1db418f commit d4aef9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ all protocol required be enable before use has been enable by chrome-pool.

#### 5. after use a tab release it to pool:
```js
chromeTabsPoll.release(tabId);
await chromeTabsPoll.release(tabId);
```
`release` will all resource used by this tab include removeAllListeners, so you don't need to removeListener by yourself.
`release` will release all resource used by this tab include removeAllListeners, so you don't need to removeListener by yourself.
By default `release` will navigate tab to `about:blank` to reduce chrome resource use, you can close this feature by call `chromeTabsPoll.release(tabId,false)`
#### 6. show chrome
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chrome-pool",
"version": "1.1.3",
"version": "1.2.0",
"description": "headless chrome tabs manage pool",
"keywords": [
"chrome",
Expand Down

0 comments on commit d4aef9a

Please sign in to comment.