aboutsummaryrefslogtreecommitdiff
path: root/assets/web.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/web.js')
-rw-r--r--assets/web.js3
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;
+ }
});
}
})