mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-04-06 17:10:29 +08:00
Feat: add open func
This commit is contained in:
parent
4cd60ecd87
commit
6c02c21920
@ -1,4 +1,5 @@
|
||||
import "module-alias/register";
|
||||
import os from "os";
|
||||
import { $t } from "./app/i18n";
|
||||
import { initVersionManager, getVersion } from "./app/version";
|
||||
import RedisStorage from "./app/common/storage/redis_storage";
|
||||
@ -37,9 +38,9 @@ function setupHttp(koaApp: Koa, port: number, host?: string) {
|
||||
logger.info($t("TXT_CODE_app.exitTip", { port }));
|
||||
logger.info("==================================");
|
||||
|
||||
// if (os.platform() == "win32") {
|
||||
// open(`http://localhost:${port}/`).then(() => {});
|
||||
// }
|
||||
if (os.platform() == "win32") {
|
||||
open(`http://localhost:${port}/`).then(() => {});
|
||||
}
|
||||
}
|
||||
|
||||
async function processExit() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user