mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-29 23:43:55 -04:00
withPluginAPI
shim to updated plugins will not raise errors
This commit is contained in:
parent
bf96025507
commit
3811b8aa4c
1 changed files with 5 additions and 0 deletions
|
@ -15,3 +15,8 @@ export function decorateCooked(container, cb) {
|
||||||
decorate(container.lookupFactory('view:embedded-post'), 'didInsertElement', cb);
|
decorate(container.lookupFactory('view:embedded-post'), 'didInsertElement', cb);
|
||||||
decorate(container.lookupFactory('view:user-stream'), 'didInsertElement', cb);
|
decorate(container.lookupFactory('view:user-stream'), 'didInsertElement', cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Will be backported so plugins in the new format will not raise errors
|
||||||
|
export function withPluginApi(version) {
|
||||||
|
console.warn(`Plugin API v${version} is not supported`);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue