https://github.com/progfay/cdp-notification-permission
https://github.com/progfay/cdp-notification-permission
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/progfay/cdp-notification-permission
- Owner: progfay
- License: mit
- Created: 2020-12-28T05:18:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T18:24:44.000Z (over 2 years ago)
- Last Synced: 2025-01-30T20:16:27.947Z (5 months ago)
- Language: JavaScript
- Size: 213 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdp-notification-permission
## Output
```js
[
{
"type": "string",
"value": "Notification.permission"
},
{
"type": "string",
"value": "denied"
}
]
[
{
"type": "string",
"value": "query"
},
{
"type": "object",
"className": "PermissionStatus",
"description": "PermissionStatus",
"objectId": "-7003650536473411300.2.1",
"preview": {
"type": "object",
"description": "PermissionStatus",
"overflow": false,
"properties": [
{
"name": "state",
"type": "string",
"value": "granted"
},
{
"name": "onchange",
"type": "object",
"value": "null",
"subtype": "null"
}
]
}
}
]
[
{
"type": "string",
"value": "request"
},
{
"type": "string",
"value": "granted"
}
]
[
{
"type": "string",
"value": "Notification.permission2"
},
{
"type": "string",
"value": "denied"
}
]
```## Usage
### with docker-compose
Run headless-chrome and Node.js at the same time:
```sh
docker-compose up --build
```Run only headless-chrome in background:
```sh
docker-compose up -d chrome
```Run Node.js with build before executing:
```sh
docker-compose up --build node
```### with Local Environment
1. Run only headless-chrome in background
2. Execute built Javascript code```sh
docker-compose up -d chrome
npm start
```