xmpp.chapril.org-conversejs/src/plugins/fullscreen/index.js
JC Brand bd60861c1e Don't import plugins' index.js file from other plugins
Importing a plugin's `index.js` file from other plugins means that it's no
longer possible to remove that plugin by removing it from `src/converse.js`.

Instead, all plugins need to be imported in proper order from
`src/headless/headless.js` and `src/converse.js`.

Updates #3026
2022-09-20 14:48:20 +02:00

28 lines
660 B
JavaScript

/**
* @module converse-fullscreen
* @license Mozilla Public License (MPLv2)
* @copyright 2022, the Converse.js contributors
*/
import { api, converse } from "@converse/headless/core";
import { isUniView } from '@converse/headless/utils/core.js';
import './styles/fullscreen.scss';
converse.plugins.add('converse-fullscreen', {
enabled () {
return isUniView();
},
initialize () {
api.settings.extend({
chatview_avatar_height: 50,
chatview_avatar_width: 50,
hide_open_bookmarks: true,
show_controlbox_by_default: true,
sticky_controlbox: true
});
}
});