Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
fa305639
Commit
fa305639
authored
Apr 30, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't assume that window.converse is always defined
parent
089a5428
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/converse-emoji-views.js
src/converse-emoji-views.js
+3
-2
src/headless/converse-core.js
src/headless/converse-core.js
+4
-2
No files found.
src/converse-emoji-views.js
View file @
fa305639
...
...
@@ -4,13 +4,14 @@
* @license Mozilla Public License (MPLv2)
*/
import
"
@converse/headless/converse-emoji
"
;
import
{
View
}
from
"
skeletor.js/src/view
"
;
import
{
debounce
,
find
}
from
"
lodash
"
;
import
DOMNavigator
from
"
./dom-navigator
"
;
import
bootstrap
from
"
bootstrap.native
"
;
import
emoji_picker
from
"
templates/emoji_picker.js
"
;
import
sizzle
from
'
sizzle
'
;
import
tpl_emoji_button
from
"
templates/emoji_button.html
"
;
import
{
View
}
from
"
skeletor.js/src/view
"
;
import
{
converse
}
from
'
@converse/headless/converse-core
'
;
import
{
debounce
,
find
}
from
"
lodash
"
;
const
u
=
converse
.
env
.
utils
;
...
...
src/headless/converse-core.js
View file @
fa305639
...
...
@@ -1737,7 +1737,7 @@ function setUnloadEvent () {
}
}
export
const
converse
=
window
.
converse
;
export
const
converse
=
window
.
converse
||
{}
;
/**
...
...
@@ -1912,4 +1912,6 @@ Object.assign(converse, {
* @event converse-loaded
* @example window.addEventListener('converse-loaded', () => converse.initialize());
*/
window
.
dispatchEvent
(
new
CustomEvent
(
'
converse-loaded
'
));
const
ev
=
new
CustomEvent
(
'
converse-loaded
'
)
ev
.
converse
=
converse
;
window
.
dispatchEvent
(
ev
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment