I'm trying to copy an image from a folder to another using fs-extra module .  var fse = require('fs-extra');  function copyimage() {   fse.copy('mainisp.jpg', './test', function (err) {          if (err)        return cons...
I'm writing a desktop app using nwjs, and I want to use the right mouse button for some UI functions. This is working pretty ok right now; I am able to disable the context menu when the right click was for a UI function.  However, I am having an...
How do I capture the line number of logs when capturing the console? (Chrome only - other browsers not relevant for me)  I have the below to capture all logs;  consoleLogs: [],  init: function(){     app.captureConsole(); },  captureConsole: function...
Searching for this error text I get only info about Google Chrome.  I want to disable this warning or understand why this is happening.   I found this: https://github.com/nwjs/nw.js/issues/5761 and deleted  ~/Library/Application Support/nwjs/rm -rf D...
I have the following nodejs code using net.connect in my nwjs app:  const client = net.connect({ host: '127.0.0.1', port }, () => {   log.debug("inside the net.connect method")    client.write(JSON.stringify(payload) + '\r\n...
I have a project that's using webpack and electron. I updated my app to use the latest version of electron as it was using electron-prebuilt. Since updating to the latest version I am now unable to compile my app due to this error. I've tried...
I can see the code in Element view in Chrome, but not in source because it is load by document.write function.  How do I set a breakpoint in this case?...
is there a way to install dev version of nwjs automatically from package.json like when I type npm install?  Like when i type npm i nw --nwjs_build_type=sdk  I tried setting environment variable like this in package.json:  "scripts": { "p...
I have a NWJS app that should run in system tray and only show main window if user requests it. So far I have this code to make it happen:  package.json:  {   "name": "helloworld",   "bg-script": "bg.js",   "main&#...
I am creating a desktop application using web-technologies and "client-side" node.js. By using NWJS, I can load node-modules "client-side".  I would like to use something like the node's fs.readFile to load a client-side .html-fil...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.