RickStrahl / Westwind.AspnetCore.LiveReload

ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
Other
469 stars 42 forks source link

Incorrectly refresh on "" extension value #23

Closed dotlegacy closed 4 years ago

dotlegacy commented 4 years ago

Found a bug where it refreshes when the extension value of the file that was changed is "". The ClientFileExtensions string should be parsed into a list to check for actually ext value. Below is sample code that I used to fix it: LiveReloadConfiguration.Current.ClientFileExtensions.Split(',', System.StringSplitOptions.RemoveEmptyEntries).ToList().Contains(ext)

Also, the icon.png is missing in the Westwind.AspnetCore.LiveReload and LiveReloadServer folder.

RickStrahl commented 4 years ago

Thanks. Updated. I actually had put in a null/empty check at some point so the underlying issue was fixed. However, using the code above is more reliable overall so updated to use it instead. Thank you.