Update how textcomplete gets imported per the v0.16 changes

See ab6509782a (diff-04c6e90faac2675aa89e2176d2eec7d8)
This commit is contained in:
Jérémie Astori 2017-12-18 23:15:08 -05:00
parent 461d61d6f5
commit a5dea8caa0
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -3,13 +3,12 @@
const $ = require("jquery"); const $ = require("jquery");
const fuzzy = require("fuzzy"); const fuzzy = require("fuzzy");
const Mousetrap = require("mousetrap"); const Mousetrap = require("mousetrap");
const {Textcomplete, Textarea} = require("textcomplete");
const emojiMap = require("./libs/simplemap.json"); const emojiMap = require("./libs/simplemap.json");
const options = require("./options"); const options = require("./options");
const constants = require("./constants"); const constants = require("./constants");
const input = $("#input"); const input = $("#input");
const Textcomplete = require("textcomplete/lib/textcomplete").default;
const Textarea = require("textcomplete/lib/textarea").default;
let textcomplete; let textcomplete;
module.exports = { module.exports = {