mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:51:26 +08:00
[v3] Remove 'assets.URL'
This commit is contained in:
parent
3148154308
commit
2a68fae55e
@ -49,13 +49,11 @@ var WindowDefaults = &WebviewWindow{
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Assets struct {
|
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 to use for loading assets from
|
||||||
FS fs.FS
|
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
|
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
|
Middleware func(http.Handler) http.Handler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user