mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
Refactor composer preview logic
This commit is contained in:
@@ -332,6 +332,10 @@ class Composer extends Component {
|
||||
this.oldPosition = this.position;
|
||||
}
|
||||
|
||||
isMobile() {
|
||||
return this.$backdrop && this.$backdrop.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirm with the user that they want to close the composer and lose their
|
||||
* content.
|
||||
|
Reference in New Issue
Block a user