Skip to content

Commit c9ed54a

Browse files
committed
simplify live reload detection
1 parent 991e7c9 commit c9ed54a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
declare const LIVE_RELOAD: boolean;
55

66
// auto-refresh when source code have changed
7-
if (typeof LIVE_RELOAD !== "undefined" && LIVE_RELOAD) {
7+
if (LIVE_RELOAD) {
88
new EventSource("/esbuild")
99
.addEventListener("change", () => location.reload());
1010
}

0 commit comments

Comments
 (0)