![Firefox Androidile logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-37-28-a0d9f0_1.png)
eval function (Javascript) doesnt run on Firefox for Android plugin
I'm trying to migrate a desktop plugin into a Firefox for Android plugin , and I need to use the 'eval' function. When I run the plugin on mobile, it crashes when eval(). This is what I need to do:
String adaptionFunction = getConcreteFunctionName(); eval (adaptionFunction);
The first line returns something like this: __Application__.newList() I also tryed this, but didn't work:
var tmpFunc = new Function(adaptionFunction); tmpFunc();
What I can do? This same code runs fine on desktop. Thanks for your time,
GaL
Valitud lahendus
There was a logic problem, and eval works fine. I can't delete this post, so I answer here.
Loe vastust kontekstis 👍 1All Replies (1)
Valitud lahendus
There was a logic problem, and eval works fine. I can't delete this post, so I answer here.