mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
1.2.15
This commit is contained in:
parent
1395f8239a
commit
2bb0343b0a
@ -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.
|
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
|
## Known limitations
|
||||||
|
|
||||||
|
1
ide.js
1
ide.js
@ -1,6 +1,7 @@
|
|||||||
(async () => {
|
(async () => {
|
||||||
jdk.log = document.getElementById('javaConsole');
|
jdk.log = document.getElementById('javaConsole');
|
||||||
await jdk.init('./jdk');
|
await jdk.init('./jdk');
|
||||||
|
jdk.workerPath = 'java2js/java2js_worker.js';
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
jdk.log.value = '';
|
jdk.log.value = '';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "java2js",
|
"name": "java2js",
|
||||||
"version": "1.2.14",
|
"version": "1.2.15",
|
||||||
"description": "Converts Java to JavaScript and runs it with a JS JDK",
|
"description": "Converts Java to JavaScript and runs it with a JS JDK",
|
||||||
"main": "jdk.js",
|
"main": "jdk.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user