0
I have a simple code to run, I never used Val, but I know its syntax:
var package = "edos.desktop";
eval(package + ".main()");
But it’s not working in my browser...
I tried to use some alternatives like Function(package + ".main()")
, setTimeout(package + ".main()");
,setInterval(package + ".main()");
, but amazingly, only the setInterval()
worked, however, he kept repeating the code whenever he could...
my script with the main code:
var edos = {};
edos.desktop = {
main: function() {
document.writeln("este é um app!");
},
}
and I need a solution, because eval()
does not work, or some alternative to bypass the Eval...
DETAILS OF THE TESTED DEVICE:
Disposiivo: Moto G6 Play
Android: 8.0
Chrome Canary: 74
From what I understand, what you’re doing there is calling the function
c()
inside an objecta.b
. Better put the full code in the question and explain better what you intend to do.– Sam
Okay, but that’s exactly what I wanted to show you...
– EduApps