Fix livereload for the home page bundle

Fixes #4576
This commit is contained in:
Bjørn Erik Pedersen 2018-04-05 18:02:52 +02:00
parent db0633c1a4
commit f87239e4ca
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -676,6 +676,7 @@ type contentChangeMap struct {
func (m *contentChangeMap) add(filename string, tp bundleDirType) {
m.mu.Lock()
dir := filepath.Dir(filename) + helpers.FilePathSeparator
dir = strings.TrimPrefix(dir, ".")
switch tp {
case bundleBranch:
m.branches = append(m.branches, dir)