Failed to start Chrome app with screen timing using electron

I successfully completed this github when using chrome extenstion. But when I start it using the electronic socket connection, an error occurred while establishing the connection: net :: ERR_CONNECTION_REFUSED

Below is the package.json file. I tried "chromium-args": "--allow-running-insecure-content --ignore-certificate-errors", but didn't help. Are there any specific changes I need to make to package.json. Just trying to learn, let me know if any information is missing?

{
  "name": "electron-app",
  "version": "1.0.0",
  "description": "",
  "main": "main.js",
   "icons": {
    "16": "icon.png",
    "128": "icon.png"
  },

  "app": {
    "background": {
      "scripts": ["background.js"]
    }
  },
  "sockets": {
     "udp": { "bind": "*", "send": "*" }
  },
  "permissions": [
    "system.network", "desktopCapture", "videoCapture", "mdns"
  ],
  "dependencies": {
    "pretty-bytes": "^2.0.1"
  },
  "devDependencies": {
    "electron-prebuilt": "^0.35.2"
  },
  "scripts": {
    "start": "electron main.js"
  },
  "author": "",
  "license": "ISC"
}
Run codeHide result
+4
source share
1

Chrome Electron , NW.js v0.13 Beta.

0

Source: https://habr.com/ru/post/1627082/


All Articles