fix process is not defined error

This commit is contained in:
CounterFire2023 2024-07-03 21:43:32 +08:00
parent bf1be4dfe0
commit c8b0e9b5d8

View File

@ -33,6 +33,9 @@
content="https://gacha.counterfire.games/images/counter.png" content="https://gacha.counterfire.games/images/counter.png"
/> />
</head> </head>
<script>
window.process = { browser: true, env: { ENVIRONMENT: 'BROWSER' } };
</script>
<script type="module"> <script type="module">
import { Buffer } from "buffer"; import { Buffer } from "buffer";
window.Buffer = Buffer; window.Buffer = Buffer;