mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Allow adding custom javascript to the page. Closes #2604
This commit is contained in:
		| @ -46,6 +46,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { | ||||
| 			SocialHandles:       data.GetSocialHandles(), | ||||
| 			NSFW:                data.GetNSFW(), | ||||
| 			CustomStyles:        data.GetCustomStyles(), | ||||
| 			CustomJavascript:    data.GetCustomJavascript(), | ||||
| 			AppearanceVariables: data.GetCustomColorVariableValues(), | ||||
| 		}, | ||||
| 		FFmpegPath:              ffmpeg, | ||||
| @ -138,6 +139,7 @@ type webConfigResponse struct { | ||||
| 	StreamTitle         string                `json:"streamTitle"` // What's going on with the current stream | ||||
| 	SocialHandles       []models.SocialHandle `json:"socialHandles"` | ||||
| 	CustomStyles        string                `json:"customStyles"` | ||||
| 	CustomJavascript    string                `json:"customJavascript"` | ||||
| 	AppearanceVariables map[string]string     `json:"appearanceVariables"` | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas