Skip to content

Commit

Permalink
Fix CSS file reloading on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
spadapet committed Feb 14, 2025
1 parent 98f7e6a commit a3ea9ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal static class StaticContentHotReloadManager
{ (ApplicationAssemblyName, "_framework/static-content-hot-reload.js"), ("text/javascript", Encoding.UTF8.GetBytes(@"
export function notifyCssUpdated() {
const allLinkElems = Array.from(document.querySelectorAll('link[rel=stylesheet]'));
allLinkElems.forEach(elem => elem.href += '');
allLinkElems.forEach(elem => elem.href = elem.href.split('?')[0] + '?reload_version=' + Date.now());
}
")) }
};
Expand Down

0 comments on commit a3ea9ff

Please sign in to comment.