Skip to content

Commit a06a21c

Browse files
committed
Save first
1 parent db59956 commit a06a21c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fails-components/notepadhandler",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"description": "Supplies server side notepad handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",

src/notepadhandler.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ export class NoteScreenConnection {
320320
'drawcommand',
321321
async function (cmd) {
322322
const delayed = false
323+
if (notepadscreenid) {
324+
networksource.receiveData(cmd)
325+
}
323326
// special handling
324327
if (cmd.task === 'addPicture') {
325328
if (notepadscreenid) {
@@ -343,10 +346,6 @@ export class NoteScreenConnection {
343346
this.screenio.to(notepadscreenid.roomname).emit('drawcommand', cmd)
344347
this.notesio.to(notepadscreenid.roomname).emit('drawcommand', cmd)
345348
}
346-
347-
if (notepadscreenid) {
348-
networksource.receiveData(cmd)
349-
}
350349
}.bind(this)
351350
)
352351

0 commit comments

Comments
 (0)