aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--desktop/sources/scripts/client.js2
-rw-r--r--desktop/sources/scripts/commander.js2
-rw-r--r--sw.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/desktop/sources/scripts/client.js b/desktop/sources/scripts/client.js
index b98bfe0..e667915 100644
--- a/desktop/sources/scripts/client.js
+++ b/desktop/sources/scripts/client.js
@@ -12,7 +12,7 @@
/* global Theme */
function Client () {
- this.version = 166
+ this.version = 167
this.library = library
this.theme = new Theme(this)
diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js
index a6fe83c..f1ec2fa 100644
--- a/desktop/sources/scripts/commander.js
+++ b/desktop/sources/scripts/commander.js
@@ -127,7 +127,7 @@ function Commander (client) {
}
this.trigger = function (msg = this.query, origin = null) {
- const cmd = `${msg}`.split(':')[0].toLowerCase()
+ const cmd = `${msg}`.split(':')[0].trim().replace(/\W/g, '').toLowerCase()
const val = `${msg}`.substr(cmd.length + 1)
const fn = this.actives[cmd]
if (!fn) { console.warn('Commander', `Unknown message: ${msg}`); this.stop(); return }
diff --git a/sw.js b/sw.js
index 56d6cd1..5918143 100644
--- a/sw.js
+++ b/sw.js
@@ -1,4 +1,4 @@
-// 166
+// 167
const assets = [
'./',