diff options
-rw-r--r-- | desktop/sources/scripts/client.js | 2 | ||||
-rw-r--r-- | desktop/sources/scripts/commander.js | 2 | ||||
-rw-r--r-- | sw.js | 2 |
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 } @@ -1,4 +1,4 @@ -// 166 +// 167 const assets = [ './', |