1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Enable es6 parsing in Function editor by default

Fixes #985
This commit is contained in:
Nick O'Leary 2016-09-30 23:51:27 +01:00
parent c797073c05
commit 306825aa90

View File

@ -1392,7 +1392,7 @@ RED.editor = (function() {
if (options.globals) {
setTimeout(function() {
if (!!session.$worker) {
session.$worker.send("setOptions", [{globals: options.globals}]);
session.$worker.send("setOptions", [{globals: options.globals, esversion:6}]);
}
},100);
}