forked from public/cordova-plugin-inappbrowser
CB-12895 : added eslint and removed jshint
This commit is contained in:
@@ -19,14 +19,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* jshint -W061 */
|
||||
/* global oxide */
|
||||
|
||||
oxide.addMessageHandler("EXECUTE", function(msg) {
|
||||
oxide.addMessageHandler('EXECUTE', function (msg) {
|
||||
var code = msg.args.code;
|
||||
try {
|
||||
msg.reply({result: eval(code)});
|
||||
} catch(e) {
|
||||
msg.error("Code threw exception: \"" + e + "\"");
|
||||
msg.reply({result: eval(code)}); // eslint-disable-line no-eval
|
||||
} catch (e) {
|
||||
msg.error('Code threw exception: "' + e + '"');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user