提交完美的无头模式

This commit is contained in:
PC-20230316NUNE\Administrator
2023-11-22 17:46:08 +08:00
parent 7389f6d716
commit f890be0728
17 changed files with 975 additions and 175 deletions

View File

@@ -1,12 +1,12 @@
// const URL = "http://192.168.0.174:7457/web-desktop/web-desktop/index.html"
// const express = require("express");
// const app = express();
const URL = "http://192.168.1.23:7456/web-desktop/web-desktop-001/index.html"
const URL = "http://192.168.0.123:7457/web-desktop/web-desktop/index.html"
// const runCocos = () => {
const { JSDOM,ResourceLoader } = require('jsdom')
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const axios = require('axios').default;
const WebGL = require('gl');
const { request } = require('express');
const WebGLRenderingContext = WebGL.WebGLRenderingContext;
@@ -44,6 +44,7 @@ fetch(URL).then(res => res.text()).then(html => {
window.fetch = fetch;
window.GUser = "100000";
window.GPassworld = "123456";
window['axios'] = axios;
})
setTimeout(() => {}, 99999999);