mirror of
https://github.com/flarum/core.git
synced 2025-10-21 19:56:29 +02:00
Replace forum and admin global compat exports with a Proxy to allow namespace use (#2488)
This commit is contained in:
committed by
GitHub
parent
51a97fb12e
commit
67a2aac635
@@ -15,8 +15,9 @@ export { app };
|
||||
// export { IndexPage, DicsussionList } from './components';
|
||||
|
||||
// Export compat API
|
||||
import compat from './compat';
|
||||
import compatObj from './compat';
|
||||
import proxifyCompat from '../common/utils/proxifyCompat';
|
||||
|
||||
compat.app = app;
|
||||
compatObj.app = app;
|
||||
|
||||
export { compat };
|
||||
export const compat = proxifyCompat(compatObj, 'forum');
|
||||
|
Reference in New Issue
Block a user