mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
Use flarum/utils/Stream instead of m.stream
This commit is contained in:
parent
a3119e151e
commit
5dfc037719
|
@ -2,6 +2,7 @@ import 'iframe-resizer/js/iframeResizer.contentWindow.js';
|
||||||
|
|
||||||
import { override, extend } from 'flarum/extend';
|
import { override, extend } from 'flarum/extend';
|
||||||
import app from 'flarum/app';
|
import app from 'flarum/app';
|
||||||
|
import Stream from 'flarum/utils/Stream';
|
||||||
import ForumApplication from 'flarum/ForumApplication';
|
import ForumApplication from 'flarum/ForumApplication';
|
||||||
import Composer from 'flarum/components/Composer';
|
import Composer from 'flarum/components/Composer';
|
||||||
import PostStream from 'flarum/components/PostStream';
|
import PostStream from 'flarum/components/PostStream';
|
||||||
|
@ -33,7 +34,7 @@ override(PostMeta.prototype, 'getPermalink', (original, post) => {
|
||||||
return original(post).replace('/embed', '/d');
|
return original(post).replace('/embed', '/d');
|
||||||
});
|
});
|
||||||
|
|
||||||
app.pageInfo = m.stream({});
|
app.pageInfo = Stream({});
|
||||||
|
|
||||||
const reposition = function() {
|
const reposition = function() {
|
||||||
const info = app.pageInfo();
|
const info = app.pageInfo();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user