mirror of
https://github.com/gazer-x/komari.git
synced 2026-06-22 00:05:52 +08:00
6 lines
322 B
Go
6 lines
322 B
Go
package javascript
|
|
|
|
type Addition struct {
|
|
Script string `json:"script" required:"true" type:"richtext" help:"JavaScript code (ES6 supported) that implements sendMessage(message, title) and optionally sendEvent(event) functions. Both should return a Promise or boolean. Available APIs: fetch(), xhr(), console.log()."`
|
|
}
|