mirror of
https://github.com/flarum/framework.git
synced 2025-06-02 21:43:21 +08:00
Use m.deferred instead of native Promise
This commit is contained in:

committed by
GitHub

parent
4aad293284
commit
92c8c616e1
@ -122,7 +122,8 @@ class PostStream extends Component {
|
||||
* @public
|
||||
*/
|
||||
update() {
|
||||
if (!this.viewingEnd) return Promise.resolve();
|
||||
if (!this.viewingEnd) return m.deferred().resolve().promise;
|
||||
|
||||
|
||||
this.visibleEnd = this.count();
|
||||
|
||||
|
Reference in New Issue
Block a user