Bump CX version
It is now possible to drop the separate builds for mobile and desktop thanks to reduced memory pressure
This commit is contained in:
parent
69ac19cf84
commit
ae1714cce9
1 changed files with 2 additions and 13 deletions
15
index.html
15
index.html
|
@ -101,7 +101,7 @@
|
|||
" | |",
|
||||
" +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+",
|
||||
"",
|
||||
" Welcome to WebVM (build 20220201). If unsure, try these examples:",
|
||||
" Welcome to WebVM (build 20220509). If unsure, try these examples:",
|
||||
"",
|
||||
" python3 examples/python3/fibonacci.py ",
|
||||
" gcc -o helloworld examples/c/helloworld.c && ./helloworld",
|
||||
|
@ -305,18 +305,7 @@
|
|||
var script = document.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
|
||||
var cxFile = "https://cheerpxdemos.leaningtech.com/publicdeploy/";
|
||||
const isMobile = navigator.userAgent.toLowerCase().match(/mobile/i);
|
||||
if (isMobile)
|
||||
{
|
||||
printOnTerm.printMessage(["Loading mobile version...\n"]);
|
||||
cxFile += '20220131_500/cx.js';
|
||||
}
|
||||
else
|
||||
{
|
||||
cxFile += '20220131_700/cx.js';
|
||||
}
|
||||
|
||||
var cxFile = "https://cheerpxdemos.leaningtech.com/publicdeploy/20220509_500/cx.js";
|
||||
script.src = cxFile;
|
||||
script.addEventListener("load", runBash, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue