eclipsesource / eclipsesource/tabris-js

Fetch api success on tabris test program but production aab/apk is not work

Open
#2,254 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

Dear all,

I have a javascript file that is load from outside, and pass it to Module.execute
I have tested on tabris.js dev/test program, but the same code is not work on my built file.
Would you have any idea to check and solve the problem, thanks for your help.

I'm using tabris 3.9 and the sample code is pasted below:
```
const {contentView, TextView, Module} = require('tabris');
async function main() {
var url = 'https://some-valid.dummy/main.js';
var a = await fetch(url);
var b = await a.text();
try {
Module.execute(b, url);
}catch(e) {
}
}

main().catch(function(e) {
//nothing to do
new TextView({
text:"Error",
centerX: '0',
centerY: '0',
font: '36px',
}).appendTo(contentView);
})
```

cheers,

Alan (a.k.a. summer)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.