mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
16 lines
194 B
Go
16 lines
194 B
Go
package xhr
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/dop251/goja"
|
|
)
|
|
|
|
//go:embed xhr.js
|
|
var script string
|
|
|
|
func Enable(runtime *goja.Runtime) error {
|
|
_, err := runtime.RunString(script)
|
|
return err
|
|
}
|