From 1cde126e6f730605890cb299953e028d074ccf8a Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 22 Feb 2020 20:23:14 +0100 Subject: Format fix Problem with gsm. They force the first letter to be a majuscule. Ex: Typing "manger" will become "Manger" and so will not be in the dictionary. Must be searched at manger and at Manger. --- assets/web.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assets') diff --git a/assets/web.js b/assets/web.js index b624edd..46b6810 100644 --- a/assets/web.js +++ b/assets/web.js @@ -22,6 +22,9 @@ const web = new Vue({ if( response.ok ) { response.arrayBuffer().then(res => { this.definitions = msgpack.decode(new Uint8Array(res)); + if( this.definitions && this.definitions[0] && this.definitions[0].mot) { + this.word = this.definitions[0].mot; + } }); } }) -- cgit v1.2.3