mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
This commit is contained in:
@@ -22,6 +22,14 @@ define('composer', [
|
||||
|
||||
$(window).off('resize', onWindowResize).on('resize', onWindowResize);
|
||||
|
||||
$(window).on('action:popstate', function(ev, data) {
|
||||
var env = utils.findBootstrapEnvironment();
|
||||
|
||||
if (composer.active && (env === 'xs' || env ==='sm')) {
|
||||
discard(composer.active);
|
||||
}
|
||||
});
|
||||
|
||||
// Query server for formatting options
|
||||
socket.emit('modules.composer.getFormattingOptions', function(err, options) {
|
||||
composer.formatting = options;
|
||||
|
||||
Reference in New Issue
Block a user