Commit 834866bd authored by JC Brand's avatar JC Brand

Add fullscreen class when applicable

parent e6d56314
......@@ -396,8 +396,12 @@
if (_.isNull(el)) {
el = document.createElement('div');
el.setAttribute('id', 'conversejs');
if (_.includes(['mobile', 'fullscreen'], _converse.view_mode)) {
el.classList.add('fullscreen');
}
// Converse.js expects a <body> tag to be present.
document.querySelector('body').appendChild(el);
}
el.innerHTML = '';
this.setElement(el, false);
......
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