mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:50:15 +08:00
bugfix: correct typo
This commit is contained in:
parent
55115742c1
commit
b84fd76e86
@ -34,7 +34,7 @@ type assetHandler struct {
|
|||||||
retryMissingFiles bool
|
retryMissingFiles bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAsssetHandler(ctx context.Context, options *options.App) (http.Handler, error) {
|
func NewAssetHandler(ctx context.Context, options *options.App) (http.Handler, error) {
|
||||||
vfs := options.Assets
|
vfs := options.Assets
|
||||||
if vfs != nil {
|
if vfs != nil {
|
||||||
if _, err := vfs.Open("."); err != nil {
|
if _, err := vfs.Open("."); err != nil {
|
||||||
|
@ -32,7 +32,7 @@ type AssetServer struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewAssetServer(ctx context.Context, options *options.App, bindingsJSON string) (*AssetServer, error) {
|
func NewAssetServer(ctx context.Context, options *options.App, bindingsJSON string) (*AssetServer, error) {
|
||||||
handler, err := NewAsssetHandler(ctx, options)
|
handler, err := NewAssetHandler(ctx, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ func (d *DevWebServer) Run(ctx context.Context) error {
|
|||||||
})
|
})
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
assetHandler, err = assetserver.NewAsssetHandler(ctx, d.appoptions)
|
assetHandler, err = assetserver.NewAssetHandler(ctx, d.appoptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user