This commit is contained in:
howard-stearns 2018-05-10 16:39:56 -07:00
parent 50a53a5174
commit bf26aec260

View file

@ -744,12 +744,12 @@ function receiveMessage(channel, messageString, senderID) {
var message = JSON.parse(messageString); var message = JSON.parse(messageString);
switch (message.method) { switch (message.method) {
case 'select': case 'select':
if (!onPalScreen) { if (!onPalScreen) {
tablet.loadQMLSource(PAL_QML_SOURCE); tablet.loadQMLSource(PAL_QML_SOURCE);
Script.setTimeout(function () { sendToQml(message); }, 1000); Script.setTimeout(function () { sendToQml(message); }, 1000);
} else { } else {
sendToQml(message); // Accepts objects, not just strings. sendToQml(message); // Accepts objects, not just strings.
} }
break; break;
} }
} }