1
0
mirror of https://github.com/quinton-ashley/java2js synced 2024-12-29 10:11:54 +01:00
This commit is contained in:
Quinton Ashley 2022-04-30 07:50:00 -05:00
parent 1395f8239a
commit 2bb0343b0a
3 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ Runs the main method
java2js might cause the main thread to stall when transpiling a large Java file. This can cause your website to appear unresponsive/frozen. You can (optionally) utilize the java2js worker script to transpile Java asynchronously in a seperate JS thread. However due to CORS security 'jav2js_worker.js' must be hosted on your own domain, define 'jdk.workerPath' to be the location of that file.
By default workerPath is undefined unless you are using java2js on a local server, in that case workerPath is the parent folder of jdk.root
By default workerPath is undefined unless you are using java2js on a local server, in that case workerPath is the path to 'jav2js_worker.js' in the parent folder of jdk.root
## Known limitations

1
ide.js
View File

@ -1,6 +1,7 @@
(async () => {
jdk.log = document.getElementById('javaConsole');
await jdk.init('./jdk');
jdk.workerPath = 'java2js/java2js_worker.js';
async function run() {
jdk.log.value = '';

View File

@ -1,6 +1,6 @@
{
"name": "java2js",
"version": "1.2.14",
"version": "1.2.15",
"description": "Converts Java to JavaScript and runs it with a JS JDK",
"main": "jdk.js",
"scripts": {