Skip to content

Commit 3b8099b

Browse files
committed
fix blurhash infinite loop
1 parent b681f98 commit 3b8099b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gallerygen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func watchDirectory(dirPath string, tmpl *template.Template, title string) error
295295
select {
296296
case event := <-watcher.Events:
297297
// Ignore events for index.html files and hidden/temp files
298-
if filepath.Base(event.Name) == "index.html" || isHiddenOrTemp(event.Name) {
298+
if filepath.Base(event.Name) == "index.html" || filepath.Base(event.Name) == "blurhash.js" || isHiddenOrTemp(event.Name) {
299299
continue
300300
}
301301

0 commit comments

Comments
 (0)