mirror of
				https://github.com/beego/bee.git
				synced 2025-11-04 04:13:26 +00:00 
			
		
		
		
	after build the browser is refreshed
This commit is contained in:
		@@ -86,6 +86,12 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
 | 
			
		||||
						scheduleTime = time.Now().Add(1 * time.Second)
 | 
			
		||||
						time.Sleep(scheduleTime.Sub(time.Now()))
 | 
			
		||||
						AutoBuild(files, isgenerate)
 | 
			
		||||
 | 
			
		||||
						if config.Conf.EnableReload {
 | 
			
		||||
							// Wait 100ms more before refreshing the browser
 | 
			
		||||
							time.Sleep(100 * time.Millisecond)
 | 
			
		||||
							sendReload(e.String())
 | 
			
		||||
						}
 | 
			
		||||
					}()
 | 
			
		||||
				}
 | 
			
		||||
			case err := <-watcher.Errors:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user