Electron Does Not Show The Images Not Stored When Compiling The Application
I have a project where I download an FTP images, I store them and I show them These images are loaded into the src attribute of an img tag When I work with npm start the applicatio
Solution 1:
You can bypass the checker of electron forge with this portion of code
import { addBypassChecker } from 'electron-compile';
addBypassChecker((filePath) => { return filePath.indexOf(app.getAppPath()) === -1 && (/.jpg/.test(filePath) || /.ms/.test(filePath) || /.png/.test(filePath)); });
Post a Comment for "Electron Does Not Show The Images Not Stored When Compiling The Application"