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...
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...
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 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'm working on an IDE as a side project using NW.js and I need to detect if there's any changes to my project tree when focused.  I'm using JQuery's .each check if the files in the project folder have changed since being focused.  Her...
I have an application that is built with angular (FE), and Nestjs (BE). The application is working fine on the server.  I am trying to combine the application with NWJS environment in order to create a desktop application.  I can run the application...
The documentation of NWJS says that Window inherits EventEmitter, no normally I should be able to use  emit() from a Window object but it doesn't work and i'm getting this error:  Uncaught TypeError: Cannot read property 'emit' of und...
I am writing an application in NW.JS and need to be able to lock the application to specific machines. I would like to be able to programatically get any kind of string or value that is unique per machine.   I have tried using this https://www.npmjs....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.