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

Fix undefined reference loading on mobile

This commit is contained in:
Nick O'Leary 2019-09-20 12:57:02 +01:00
parent d2a8823808
commit 2601cc898c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -224,11 +224,11 @@ RED.menu = (function() {
if (!alreadySet && opt.onselect) { if (!alreadySet && opt.onselect) {
triggerAction(opt.id,state); triggerAction(opt.id,state);
} }
}
if (!opt.local && !alreadySet) { if (!opt.local && !alreadySet) {
RED.settings.set(opt.setting||("menu-"+opt.id), state); RED.settings.set(opt.setting||("menu-"+opt.id), state);
} }
} }
}
function toggleSelected(id) { function toggleSelected(id) {
setSelected(id,!isSelected(id)); setSelected(id,!isSelected(id));