Mike Bates

Results 7 comments of Mike Bates

I was using only using curl to check that the requests were working. I installed square from node into an angular app, and the second request was created from the...

I opened a new issue in the correct repo, this one can be closed now. https://github.com/square/square-nodejs-sdk/issues/19

And yes, when the origin is not in the request it works. But those headers are added automatically when I use the Client object `const catalog = this.client.catalogApi.listCatalog();`

Some more info. I created a very simple node app, that just installs node-printer and sends some data to a printer using printDirect(). That worked fine. I then added electron...

This is the node app, which works ``` // label-print.js var net = require("net"); var printer = require("./node_modules/printer/lib"); function printNamed(printerName, rawCode){ printer.printDirect({ data: rawCode, printer: printerName, type: 'RAW', success:function(){ console.log('printed');...

This is the electron main.js, which works when line 3 is commented out. The renderer process outputs some version info for me as well: Node.js 8.9.3, Chromium 61.0.3163.100, and Electron...

One more experiment, I set my package.json "main" from the eletron script to the node script. To the difference between the working script and the none working script is how...