Skip to content

Commit ee0ce15

Browse files
committed
Nitpicks and spelling fixes
1 parent 9519260 commit ee0ce15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/bs-sqlite-db-example/autorun.brs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

examples/bs-sqlite-db-example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
if (bsMessage) {
77
bsMessage.addEventListener('bsmessage', function(msg) {

0 commit comments

Comments
 (0)