MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / constructor

Method constructor

env/env.js:26–39  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

24 }
25 return new (class {
26 constructor(t, e) {
27 ;(this.name = t),
28 (this.http = new s(this)),
29 (this.data = null),
30 (this.dataFile = 'box.dat'),
31 (this.logs = []),
32 (this.isMute = !1),
33 (this.isNeedRewrite = !1),
34 (this.logSeparator = '\n'),
35 (this.encoding = 'utf-8'),
36 // (this.startTime = new Date().getTime()),
37 Object.assign(this, e)
38 // this.log('', `🔔${this.name}, 开始!`)
39 }
40 getEnv() {
41 return 'undefined' != typeof $environment && $environment['surge-version']
42 ? 'Surge'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected