mirror of
https://github.com/snobu/destreamer.git
synced 2026-05-27 20:13:28 +00:00
Compare commits
3 Commits
d9137cc690
...
7c16da6505
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c16da6505 | ||
|
|
52d5b227e2 | ||
|
|
a62f8ef777 |
11
README.md
11
README.md
@@ -66,19 +66,16 @@ const browser: puppeteer.Browser = await puppeteer.launch({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Navigate to `chrome://version` in the browser you want to plug in and copy executable path from there. Use double backslash for Windows.
|
||||||
|
|
||||||
Now, change `executablePath` to reflect the path to your browser and profile (i.e. to use Microsoft Edge on Windows):
|
Now, change `executablePath` to reflect the path to your browser and profile (i.e. to use Microsoft Edge on Windows):
|
||||||
```typescript
|
```typescript
|
||||||
executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
|
executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
|
||||||
```
|
```
|
||||||
In Linux for Chromium,
|
|
||||||
```typescript
|
|
||||||
executablePath: '/usr/bin/chromium-browser',
|
|
||||||
```
|
|
||||||
Depending on your distro, it may also be `/usr/bin/chromium`. You will have to change it appropriately for Google Chrome.
|
|
||||||
|
|
||||||
Note that for Mac the path may look a little different but no other changes are necessary.
|
You can add `userDataDir` right after `executablePath` with the path to your browser profile (also shown in `chrome://version`) if you want that loaded as well.
|
||||||
|
|
||||||
You need to rebuild (`npm run build`) every time you change this configuration.
|
Remember to rebuild (`npm run build`) every time you change this configuration.
|
||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
|
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -994,9 +994,9 @@
|
|||||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
||||||
},
|
},
|
||||||
"color-string": {
|
"color-string": {
|
||||||
"version": "1.5.4",
|
"version": "1.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.5.tgz",
|
||||||
"integrity": "sha512-57yF5yt8Xa3czSEW1jfQDE79Idk0+AkN/4KWad6tbdxUmAs3MvjxlWSWD4deYytcRfoZ9nhKyFl1kj5tBvidbw==",
|
"integrity": "sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"color-name": "^1.0.0",
|
"color-name": "^1.0.0",
|
||||||
"simple-swizzle": "^0.2.2"
|
"simple-swizzle": "^0.2.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user