From 2a68fae55ef59709d814b1572cbe6851404201fa Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 26 Jan 2023 08:46:24 +1100 Subject: [PATCH] [v3] Remove 'assets.URL' --- v3/pkg/options/window.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/v3/pkg/options/window.go b/v3/pkg/options/window.go index 195168f47..e69088d88 100644 --- a/v3/pkg/options/window.go +++ b/v3/pkg/options/window.go @@ -49,13 +49,11 @@ var WindowDefaults = &WebviewWindow{ } type Assets struct { - // URL to load the `index.html` file from. If this is a relative path, it will be resolved relative to the `FS` filesystem - URL string // FS to use for loading assets from FS fs.FS - // Handler is a custom handler to use for serving assets. If this is set, the `SetURL` and `FS` fields are ignored. + // Handler is a custom handler to use for serving assets. If this is set, the `URL` and `FS` fields are ignored. Handler http.Handler - // Middleware is a custom middleware to use for serving assets. If this is set, the `SetURL` and `FS` fields are ignored. + // Middleware is a custom middleware to use for serving assets. If this is set, the `URL` and `FS` fields are ignored. Middleware func(http.Handler) http.Handler }