diff --git a/client/js/autocompletion.js b/client/js/autocompletion.js index a9d146e3..171b4697 100644 --- a/client/js/autocompletion.js +++ b/client/js/autocompletion.js @@ -3,13 +3,12 @@ const $ = require("jquery"); const fuzzy = require("fuzzy"); const Mousetrap = require("mousetrap"); +const {Textcomplete, Textarea} = require("textcomplete"); const emojiMap = require("./libs/simplemap.json"); const options = require("./options"); const constants = require("./constants"); const input = $("#input"); -const Textcomplete = require("textcomplete/lib/textcomplete").default; -const Textarea = require("textcomplete/lib/textarea").default; let textcomplete; module.exports = { diff --git a/package.json b/package.json index 5c836ff5..59d4f646 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "socket.io-client": "2.0.4", "stylelint": "8.4.0", "stylelint-config-standard": "18.0.0", - "textcomplete": "0.15.0", + "textcomplete": "0.16.0", "webpack": "3.10.0" } }