Add links to original files

This commit is contained in:
He4eT 2021-02-23 14:01:38 +05:00
commit a9842cd696
6 changed files with 27 additions and 17 deletions

View file

@ -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)
}