About Electron: the alert()
I think the `win.loadFile('index.html')` is like a shit! After we compile it to EXE file by using `electron-builder`. It'll always show `DevTools failed to load SourceMap: Could not load content for file:///C:/User..../resources/app.asar/bootstrap.min.css.map`.
But the `win.loadURL()` works well.
I spent 8 hours to find out that this is a bug that I can't solve.
But the `win.loadURL()` works well.
I spent 8 hours to find out that this is a bug that I can't solve.
Then I realized this bug is not important, because the map file is indeed imported.
For me, the real bug was caused by `alert()`: https://stackoverflow.com/questions/56805920/cant-edit-input-text-field-after-window-alert