From 8aea6a3bfcd980664b737276da0471b95b3098ae Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 14 Mar 2022 22:48:32 +1100 Subject: [PATCH] Update domReady comment in templates + website --- .../wails/internal/commands/generate/template/base/app.tmpl.go | 2 +- .../commands/initialise/templates/templates/svelte/app.go | 2 +- .../commands/initialise/templates/templates/vanilla/app.go | 2 +- website/docs/reference/options.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/cmd/wails/internal/commands/generate/template/base/app.tmpl.go b/v2/cmd/wails/internal/commands/generate/template/base/app.tmpl.go index a3ab4072..224be715 100644 --- a/v2/cmd/wails/internal/commands/generate/template/base/app.tmpl.go +++ b/v2/cmd/wails/internal/commands/generate/template/base/app.tmpl.go @@ -21,7 +21,7 @@ func (a *App) startup(ctx context.Context) { a.ctx = ctx } -// domReady is called after the front-end dom has been loaded +// domReady is called after front-end resources have been loaded func (a App) domReady(ctx context.Context) { // Add your action here } diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/app.go b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/app.go index a3ab4072..224be715 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/app.go +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/app.go @@ -21,7 +21,7 @@ func (a *App) startup(ctx context.Context) { a.ctx = ctx } -// domReady is called after the front-end dom has been loaded +// domReady is called after front-end resources have been loaded func (a App) domReady(ctx context.Context) { // Add your action here } diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/app.go b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/app.go index a3ab4072..224be715 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/app.go +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/app.go @@ -21,7 +21,7 @@ func (a *App) startup(ctx context.Context) { a.ctx = ctx } -// domReady is called after the front-end dom has been loaded +// domReady is called after front-end resources have been loaded func (a App) domReady(ctx context.Context) { // Add your action here } diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index ba51ee12..78382e51 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -252,7 +252,7 @@ Name: OnDomReady Type: func(ctx context.Context) -This callback is called after the frontend has loaded `index.html` and the DOM is ready. It is given +This callback is called after the frontend has loaded `index.html` and its resources. It is given the application context. ### OnShutdown