[v3] implement Window interface

This commit is contained in:
Travis McLane
2023-09-28 11:39:39 -05:00
parent a428a730d5
commit c87489adf3
18 changed files with 171 additions and 114 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func (m *MessageProcessor) httpError(rw http.ResponseWriter, message string, arg
rw.Write([]byte(fmt.Sprintf(message, args...)))
}
func (m *MessageProcessor) getTargetWindow(r *http.Request) *WebviewWindow {
func (m *MessageProcessor) getTargetWindow(r *http.Request) Window {
windowName := r.Header.Get(webViewRequestHeaderWindowName)
if windowName != "" {
return globalApplication.GetWindowByName(windowName)