Read the statement by Michael Teeuw here.
Trading module
-
ok then the easiest solution would be to move this call to the node_helper…
-
@plumcraft Ok, I found a bug in the code. Try to pull the latest and see if it runs for you.
-
@alexyak : thanks for your quick reply but no luck with the latest pull
-
I’ve tried to enable Cors which looks like the issue here but does not make any difference
(I’ve followed instructions on this website : http://jonathanmh.com/how-to-enable-cors-in-express-js-node-js/)
-
@plumcraft could you please try the following:
Update the electron.js (it’s in the \js\ folder). Instead of:
mainWindow = new BrowserWindow({width: 800, height: 600, fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false}});
Replace it with:
mainWindow = new BrowserWindow({width: 800, height: 600, fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false, webSecurity: false}});
-
My bad Alexyak, it was working even if webSecurity was not set. It was an issue in my config.js, sorry for that.
Your module is working only on the RPI, not inside a browser (webSecurity: false or true) but it’s not a big deal.
I will try to find a solution
-
@plumcraft the webSecurity flag will only work for running in the electron on RPI. Which web browser are you trying to run it in? It works for me for chrome and safari.
-
@alexyak I’m using Google Chrome, does not work on Safari either.
-
@plumcraft could you please make sure that you pulled the latest version of the MM from github?
-
@alexyak Just tried it, i’m having the same issue :(