Commit 43ccc09c authored by JC Brand's avatar JC Brand

Don't assume that converse is a global

parent cca5c17c
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
"globals": { "globals": {
"Uint8Array": true, "Uint8Array": true,
"Promise": true, "Promise": true,
"converse": true,
"define": true, "define": true,
"require": true, "require": true,
"sinon": true, "sinon": true,
......
...@@ -194,7 +194,7 @@ eslint: node_modules ...@@ -194,7 +194,7 @@ eslint: node_modules
$(ESLINT) src/utils/*.js $(ESLINT) src/utils/*.js
$(ESLINT) src/headless/*.js $(ESLINT) src/headless/*.js
$(ESLINT) src/headless/utils/*.js $(ESLINT) src/headless/utils/*.js
$(ESLINT) spec/ $(ESLINT) spec/ --global converse
.PHONY: check .PHONY: check
check: dev eslint check: dev eslint
......
import sizzle from 'sizzle'; import sizzle from 'sizzle';
import { CustomElement } from './element.js'; import { CustomElement } from './element.js';
import { _converse, api } from "@converse/headless/converse-core"; import { _converse, converse, api } from "@converse/headless/converse-core";
import { html } from "lit-element"; import { html } from "lit-element";
import { tpl_all_emojis, tpl_search_results } from "../templates/emoji_picker.js"; import { tpl_all_emojis, tpl_search_results } from "../templates/emoji_picker.js";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment