diff options
author | ache <ache@ache.one> | 2020-02-22 20:23:14 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2020-02-22 20:23:14 +0100 |
commit | 1cde126e6f730605890cb299953e028d074ccf8a (patch) | |
tree | 2bc8b82fe12b75d7fae8a4652c1501fb70e70f19 /assets | |
parent | Test no autocapitalize (diff) |
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.
Diffstat (limited to 'assets')
-rw-r--r-- | assets/web.js | 3 |
1 files changed, 3 insertions, 0 deletions
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; + } }); } }) |