fix: remove useless thing

This commit is contained in:
ikechan8370 2024-03-09 23:37:47 +08:00
parent 5c544a5ca7
commit bd7aac0517
53 changed files with 350 additions and 2639 deletions

View file

@ -1,23 +1,23 @@
import fetch, {
Headers,
Request,
Response,
// Headers,
// Request,
// Response,
FormData
} from 'node-fetch'
import crypto from 'crypto'
import WebSocket from 'ws'
import { Config, pureSydneyInstruction } from './config.js'
import { Config } from './config.js'
import { formatDate, getMasterQQ, isCN, getUserData, limitString } from './common.js'
import moment from 'moment'
import { getProxy } from './proxy.js'
import common from '../../../lib/common/common.js'
if (!globalThis.fetch) {
globalThis.fetch = fetch
globalThis.Headers = Headers
globalThis.Request = Request
globalThis.Response = Response
}
//
// if (!globalThis.fetch) {
// globalThis.fetch = fetch
// globalThis.Headers = Headers
// globalThis.Request = Request
// globalThis.Response = Response
// }
// workaround for ver 7.x and ver 5.x
let proxy = getProxy()