dperrymorrow / electron-css-reload

force reload CSS on change in your electron app
MIT License
4 stars 4 forks source link

Reload not working, if there is a space in the path #3

Closed JoachimM7 closed 2 years ago

JoachimM7 commented 6 years ago

fs.watchFile doesn't work, if there is a space in the path name, because then instead of the space, there will be a %20. Replacing it will work, so:

try {
  deps.forEach((dep) => {
    dep = dep.replace(/%20/g, " ")
    console.log(`watching ${dep} for changes`);
    ...
dperrymorrow commented 6 years ago

well i wouldnt think you would have a space in a pathname that you are intending for the web. But nice fix. Pull requests welcome!

dperrymorrow commented 2 years ago

closed by #5