File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
examples/bs-sqlite-db-example Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Sub Main()
4747 else if eventData .message .action = "insert" then
4848 insertOk = InsertRecords (eventData .message .command )
4949 if not insertOk then
50- print "Failed to insert record: " ; cmd
50+ print "Failed to insert record: " ; eventData . message . command
5151 stop
5252 end if
5353 else if eventData .message .action = "select" then
@@ -124,7 +124,7 @@ Function SelectRecords(selectSQL as string) as dynamic
124124 end while
125125
126126 ' Stringify the records array since the roAssociativeArray sent
127- ' as imput to PostJSMessage() cannot contain an roArray type.
127+ ' as input to PostJSMessage() cannot contain an roArray type.
128128 resultAsString = FormatJson (records )
129129 m .nodejs .PostJSMessage ({ action : "select" , command : selectSQL , result : resultAsString })
130130 stmt .Finalise ()
Original file line number Diff line number Diff line change 11// index.js - BrightSign JavaScript app to receive messages from BrightScript via MessagePort
22
3- var MESSAGE_PORT = require ( "@brightsign/messageport" ) ;
4- var bsMessage = new MESSAGE_PORT ( ) ;
3+ const MESSAGE_PORT = require ( "@brightsign/messageport" ) ;
4+ const bsMessage = new MESSAGE_PORT ( ) ;
55
66if ( bsMessage ) {
77 bsMessage . addEventListener ( 'bsmessage' , function ( msg ) {
You can’t perform that action at this time.
0 commit comments