1
0
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:
Toby Zerner
2015-11-23 08:47:16 +10:30
parent 2088fceb8b
commit 599958354c
3 changed files with 6 additions and 2 deletions

View File

@@ -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.