We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
a-h
joerdav
Learn more about funding links in repositories.
Report abuse
1 parent a48e910 commit 889c833Copy full SHA for 889c833
.version
@@ -1 +1 @@
1
-0.2.753
+0.2.754
cmd/templ/generatecmd/proxy/script.js
@@ -1,9 +1,10 @@
-(function () {
+(function() {
2
let templ_reloadSrc = window.templ_reloadSrc || new EventSource("/_templ/reload/events");
3
templ_reloadSrc.onmessage = (event) => {
4
if (event && event.data === "reload") {
5
window.location.reload();
6
}
7
};
8
window.templ_reloadSrc = templ_reloadSrc;
9
+ window.onbeforeunload = () => window.templ_reloadSrc.close();
10
})();
0 commit comments