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

Method done

env/env.js:463–478  ·  view source on GitHub ↗
(t = {})

Source from the content-addressed store, hash-verified

461 return new Promise(e => setTimeout(e, t))
462 }
463 done(t = {}) {
464 // const e = new Date().getTime(),
465 // s = (e - this.startTime) / 1e3
466 switch ((/*this.log('', `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(),*/ this.getEnv())) {
467 case 'Surge':
468 case 'Loon':
469 case 'Stash':
470 case 'Shadowrocket':
471 case 'Quantumult X':
472 default:
473 $done(t)
474 break
475 case 'Node.js':
476 process.exit(1)
477 }
478 }
479 })(t, e)
480}

Callers

nothing calls this directly

Calls 1

getEnvMethod · 0.45

Tested by

no test coverage detected