mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Move EventSource to SharedWorker (#12095)
Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open browser connections from preventing gitea from opening multiple tabs. Also allow setting EVENT_SOURCE_UPDATE_TIME to disable EventSource updating Fix #11978 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -289,8 +289,8 @@ func NewFuncMap() []template.FuncMap {
 | 
			
		||||
				return ""
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		"NotificationSettings": func() map[string]int {
 | 
			
		||||
			return map[string]int{
 | 
			
		||||
		"NotificationSettings": func() map[string]interface{} {
 | 
			
		||||
			return map[string]interface{}{
 | 
			
		||||
				"MinTimeout":            int(setting.UI.Notification.MinTimeout / time.Millisecond),
 | 
			
		||||
				"TimeoutStep":           int(setting.UI.Notification.TimeoutStep / time.Millisecond),
 | 
			
		||||
				"MaxTimeout":            int(setting.UI.Notification.MaxTimeout / time.Millisecond),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user