Skip to content

Commit a938df3

Browse files
committed
Add instructions on how to open DevTools programmatically
1 parent 977fe5e commit a938df3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Unlike web apps, Chrome extension doesn't inject anything in other chrome extens
7373
<script src="chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/inject.bundle.js"></script>
7474
```
7575
To include it in a chrome extension's content script follow [the example](https://github.com/zalmoxisus/browser-redux/commit/df2db9ee11f2d197c4329b2c8a6e197da1edffd4).
76+
#### How to open DevTools programmatically
77+
```js
78+
window.devToolsExtension.open();
79+
```
7680

7781
## Credits
7882

0 commit comments

Comments
 (0)