mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Update plugin example
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
_ "embed"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/wailsapp/wails/v3/pkg/application"
|
||||
_ "modernc.org/sqlite"
|
||||
"strings"
|
||||
)
|
||||
@@ -60,7 +61,7 @@ func (p *Plugin) Name() string {
|
||||
|
||||
// Init is called when the app is starting up. You can use this to
|
||||
// initialise any resources you need.
|
||||
func (p *Plugin) Init() error {
|
||||
func (p *Plugin) Init(api application.PluginAPI) error {
|
||||
p.callableMethods = []string{"Execute", "Select"}
|
||||
p.js = executeselectjs
|
||||
if p.config.CanOpenFromJS {
|
||||
|
||||
Reference in New Issue
Block a user