aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/sources/scripts
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-05-17 15:15:39 +0100
committerDevine Lu Linvega <[email protected]>2019-05-17 15:15:39 +0100
commit13603fce74c4824ed2a3dd2de895e1ac97765f26 (patch)
tree5098ae97181286726809f60abba1e14e9abbac0a /desktop/sources/scripts
parented054e07479d71a9537438e035cf7f0ac6f2c673 (diff)
downloadOrca-13603fce74c4824ed2a3dd2de895e1ac97765f26.tar.gz
Orca-13603fce74c4824ed2a3dd2de895e1ac97765f26.zip
Progress on v126
Diffstat (limited to 'desktop/sources/scripts')
-rw-r--r--desktop/sources/scripts/commander.js4
-rw-r--r--desktop/sources/scripts/lib/theme.js2
-rw-r--r--desktop/sources/scripts/terminal.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js
index 17036e3..712c309 100644
--- a/desktop/sources/scripts/commander.js
+++ b/desktop/sources/scripts/commander.js
@@ -31,11 +31,11 @@ export default function Commander (terminal) {
const cols = terminal.cursor.getBlock()
for (const y in cols) {
for (const x in cols[y]) {
- if (cols[y][x] === '.') { continue }
+ if (!cols[y][x] || cols[y][x] === '.') { continue }
const isUC = cols[y][x] === cols[y][x].toUpperCase()
cols[y][x] = terminal.orca.keyOf(parseInt(val) + terminal.orca.valueOf(cols[y][x]))
if (isUC) {
- cols[y][x] = cols[y][x].toUpperCase()
+ cols[y][x] = `${cols[y][x]}`.toUpperCase()
}
}
}
diff --git a/desktop/sources/scripts/lib/theme.js b/desktop/sources/scripts/lib/theme.js
index d19f1f9..d4a20a0 100644
--- a/desktop/sources/scripts/lib/theme.js
+++ b/desktop/sources/scripts/lib/theme.js
@@ -44,7 +44,7 @@ export default function Theme (_default) {
}
this.setImage = function (path) {
- document.body.style.backgroundImage = path && fs.existsSync(path) ? `url(${path})` : ''
+ document.body.style.backgroundImage = path && fs.existsSync(path) && document.body.style.backgroundImage !== `url(${path})` ? `url(${path})` : ''
}
function parse (any) {
diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js
index 10710f5..b9e529b 100644
--- a/desktop/sources/scripts/terminal.js
+++ b/desktop/sources/scripts/terminal.js
@@ -12,7 +12,7 @@ import Controller from './lib/controller.js'
import library from '../../core/library.js'
export default function Terminal () {
- this.version = 125
+ this.version = 126
this.library = library
this.orca = new Orca(this)