mirror of
https://github.com/Monibuca/plugin-ts.git
synced 2025-10-26 00:40:29 +08:00
Merge branch 'master' of https://github.com/Monibuca/tsplugin
This commit is contained in:
4
main.go
4
main.go
@@ -8,7 +8,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
. "github.com/Monibuca/engine"
|
||||
@@ -24,12 +23,11 @@ var config = struct {
|
||||
}{2048, "ts", true}
|
||||
|
||||
func init() {
|
||||
_, currentFilePath, _, _ := runtime.Caller(0)
|
||||
InstallPlugin(&PluginConfig{
|
||||
Name: "TS",
|
||||
Type: PLUGIN_PUBLISHER,
|
||||
Version: "1.0.1",
|
||||
UI: filepath.Join(filepath.Dir(currentFilePath), "dashboard", "ui", "plugin-ts.min.js"),
|
||||
UI: util.CurrentDir("dashboard", "ui", "plugin-ts.min.js"),
|
||||
Config: &config,
|
||||
Run: func() {
|
||||
if config.AutoPublish {
|
||||
|
||||
Reference in New Issue
Block a user