From 2bb0343b0a28cfbb4527d5725c9960dd3f1028ad Mon Sep 17 00:00:00 2001 From: Quinton Ashley Date: Sat, 30 Apr 2022 07:50:00 -0500 Subject: [PATCH] 1.2.15 --- README.md | 2 +- ide.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 580ac79..b9adfff 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ide.js b/ide.js index b15066a..e59b8cf 100644 --- a/ide.js +++ b/ide.js @@ -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 = ''; diff --git a/package.json b/package.json index c28c9ba..11408f7 100644 --- a/package.json +++ b/package.json @@ -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": {