mirror of
https://github.com/He4eT/cheap-glkote.git
synced 2026-05-05 08:57:25 +00:00
Add links to original files
This commit is contained in:
parent
f903b78745
commit
a9842cd696
6 changed files with 27 additions and 17 deletions
|
|
@ -1,3 +1,7 @@
|
|||
/**
|
||||
* @see: https://github.com/curiousdannii/glkote-term/blob/master/src/glkote-dumb.js
|
||||
*/
|
||||
|
||||
const GlkOte = require('./glkOte/glkote-term')
|
||||
|
||||
class CheapGlkOte extends GlkOte {
|
||||
|
|
@ -33,7 +37,7 @@ class CheapGlkOte extends GlkOte {
|
|||
update_inputs(data) {
|
||||
if (!data.length) return null
|
||||
|
||||
const {type} = data[0]
|
||||
const { type } = data[0]
|
||||
if (['char', 'line'].includes(type)) {
|
||||
this.current_input_type = type
|
||||
this.handlers.onUpdateInputs(type)
|
||||
|
|
@ -58,9 +62,9 @@ class CheapGlkOte extends GlkOte {
|
|||
}
|
||||
|
||||
update_content(messages) {
|
||||
const filtered =
|
||||
messages.filter(content =>
|
||||
content.id === this.window.id)[0]
|
||||
const filtered = messages.filter(
|
||||
content => content.id === this.window.id
|
||||
)[0]
|
||||
|
||||
this.handlers.onUpdateContent(filtered)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue