Skip to content

Commit

Permalink
Add defaults to get Presentationinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Oct 31, 2021
1 parent 086484a commit 9b6f51c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fails-components/notepadhandler",
"version": "0.0.11",
"version": "0.0.12",
"description": "Supplies server side notepad handling",
"author": "Marten Richter",
"license": "AGPL-3.0-or-later",
Expand Down
6 changes: 3 additions & 3 deletions src/notepadhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1413,9 +1413,9 @@ export class NoteScreenConnection {
)
lectprop = await lectprop
return {
casttoscreens: lectprop[0],
backgroundbw: lectprop[1],
showscreennumber: lectprop[2]
casttoscreens: lectprop[0] !== null ? lectprop[0] : 'false',
backgroundbw: lectprop[1] !== null ? lectprop[1] : 'true',
showscreennumber: lectprop[2] !== null ? lectprop[2] : 'false'
}
} catch (error) {
console.log('getPresentationinfo', error)
Expand Down

0 comments on commit 9b6f51c

Please sign in to comment.