mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交完美的无头模式
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user