feat: add tag(no_script)
This commit is contained in:
parent
91b4176557
commit
20cb4d0643
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !no_script
|
||||||
|
|
||||||
package js
|
package js
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
12
component/js/core_no_script.go
Normal file
12
component/js/core_no_script.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
//go:build no_script
|
||||||
|
|
||||||
|
package js
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func NewJS(name, code string) error {
|
||||||
|
fmt.Errorf("unsupported script on the build")
|
||||||
|
}
|
||||||
|
|
||||||
|
func Run(name string, args map[string]any, callback func(any, error)) {
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !no_script
|
||||||
|
|
||||||
package js
|
package js
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !no_script
|
||||||
|
|
||||||
package js
|
package js
|
||||||
|
|
||||||
import "github.com/Dreamacro/clash/log"
|
import "github.com/Dreamacro/clash/log"
|
||||||
|
Reference in New Issue
Block a user