5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 19:50:15 +08:00

[v3] Remove 'assets.URL'

This commit is contained in:
Lea Anthony 2023-01-26 08:46:24 +11:00
parent 3148154308
commit 2a68fae55e
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -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
}