mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
FIX: Bump plugin API version.
This commit is contained in:
parent
813fcebdd1
commit
d102a079b1
|
@ -336,7 +336,7 @@ class PluginApi {
|
|||
let _pluginv01;
|
||||
function getPluginApi(version) {
|
||||
version = parseFloat(version);
|
||||
if (version <= 0.4) {
|
||||
if (version <= 0.5) {
|
||||
if (!_pluginv01) {
|
||||
_pluginv01 = new PluginApi(version, Discourse.__container__);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,6 @@ export default {
|
|||
name: "apply-details",
|
||||
|
||||
initialize() {
|
||||
withPluginApi('0.1', initializeDetails);
|
||||
withPluginApi('0.5', initializeDetails);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -25,6 +25,6 @@ export default {
|
|||
name: "add-poll-ui-builder",
|
||||
|
||||
initialize() {
|
||||
withPluginApi('0.1', initializePollUIBuilder);
|
||||
withPluginApi('0.5', initializePollUIBuilder);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user