Global for Windows
This commit is contained in:
1 parent
5a93b19655
commit
a89e4b4952
3 files changed
+16
-3
No files matched your search
@@ -7,6 +7,15 @@ When running at the clode on NodeJS some things work diffently that at the brows
|
||||
|
||||
*/
|
||||
|
||||
function runBot() {
|
||||
|
||||
let root = newRoot();
|
||||
|
||||
root.initialize();
|
||||
root.start();
|
||||
|
||||
}
|
||||
|
||||
function webRequire(pModulePath) {
|
||||
|
||||
|
||||
|
||||
@@ -214,7 +214,8 @@ function newTimeControlPanel() {
|
||||
|
||||
case "Play Forward":
|
||||
|
||||
pressPlayForward();
|
||||
runBot();
|
||||
//pressPlayForward();
|
||||
break;
|
||||
|
||||
case "Fast Forward":
|
||||
|
||||
@@ -263,11 +263,14 @@
|
||||
|
||||
let result = pData.substring(pData.indexOf('=') + 2);
|
||||
|
||||
result = result.replace("require", "webRequire");
|
||||
result = result.replace("global", "window");
|
||||
result = replaceAll(result, "require", "webRequire");
|
||||
result = replaceAll(result, "global", "window");
|
||||
|
||||
return result;
|
||||
|
||||
function replaceAll(text, search, replacement) {
|
||||
return text.replace(new RegExp(search, 'g'), replacement);
|
||||
}
|
||||
}
|
||||
|
||||
function createHTML(callBackfunction) {
|
||||
|
||||
Reference in new issue
Block a user