5
0
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:
Travis McLane 2022-05-03 21:43:15 -05:00
parent 55115742c1
commit b84fd76e86
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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