Last active
June 20, 2020 07:47
-
-
Save thijstijsma/a92d6055be410c693483a097803f2e80 to your computer and use it in GitHub Desktop.
Blazor Hot Reload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="_framework/blazor.server.js"></script> | |
<!-- Make sure you place it after the include for blazor.server.js --> | |
<environment include="Development"> | |
<script src="~/Scripts/HotReload.js"></script> | |
</environment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Blazor.defaultReconnectionHandler.onConnectionDown = function () | |
{ | |
window.location.reload(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment