MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / init

Method init

src/app/service/service_worker/synchronize.ts:768–776  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

766 }
767
768 init() {
769 this.group.on("export", this.requestExport.bind(this));
770 this.group.on("backupToCloud", this.backupToCloud.bind(this));
771 this.group.on("importResources", this.importResources.bind(this));
772 // this.group.on("import", this.openImportWindow.bind(this));
773 // 监听脚本变化, 进行同步
774 this.mq.subscribe<TInstallScript>("installScript", this.scriptInstall.bind(this));
775 this.mq.subscribe<TDeleteScript[]>("deleteScripts", this.scriptsDelete.bind(this));
776 }
777}

Callers 1

initManagerMethod · 0.95

Calls 2

subscribeMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected