Javascript – Why does my 'if' statement only work on the second trigger of the function?
Using Node JS, Electron and the FS module I have created a function within a seperate .js file that is called into my HTML as a script and triggered from a button with onclick="ReadSerials()" however it always takes two button…