Fixed Node.js cannot start issue

This commit is contained in:
Peng-YM 2022-05-26 11:17:36 +08:00
parent a9afae92c5
commit 8dbeb8eff3
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
*
*
* Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket!
* @updated: 2022/5/25 下午10:59:51
* @updated: 2022/5/26 上午11:17:01
* @version: 1.6
* @author: Peng-YM
* @github: https://github.com/Peng-YM/Sub-Store

View File

@ -2,7 +2,7 @@
import { ENV } from './open-api';
export default function express({ substore: $, port }) {
port = port || process.env.PORT || 3000;
port = port || 3000;
const { isNode } = ENV();
const DEFAULT_HEADERS = {
'Content-Type': 'text/plain;charset=UTF-8',

File diff suppressed because one or more lines are too long