mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
Bump Plugin API version for icon api
This commit is contained in:
@ -23,7 +23,7 @@ import { registerIconRenderer } from 'discourse-common/lib/icon-library';
|
|||||||
|
|
||||||
|
|
||||||
// If you add any methods to the API ensure you bump up this number
|
// If you add any methods to the API ensure you bump up this number
|
||||||
const PLUGIN_API_VERSION = '0.8.7';
|
const PLUGIN_API_VERSION = '0.8.8';
|
||||||
|
|
||||||
class PluginApi {
|
class PluginApi {
|
||||||
constructor(version, container) {
|
constructor(version, container) {
|
||||||
@ -550,7 +550,7 @@ function cmpVersions (a, b) {
|
|||||||
|
|
||||||
function getPluginApi(version) {
|
function getPluginApi(version) {
|
||||||
version = version.toString();
|
version = version.toString();
|
||||||
if (cmpVersions(version,PLUGIN_API_VERSION) <= 0) {
|
if (cmpVersions(version, PLUGIN_API_VERSION) <= 0) {
|
||||||
if (!_pluginv01) {
|
if (!_pluginv01) {
|
||||||
_pluginv01 = new PluginApi(version, Discourse.__container__);
|
_pluginv01 = new PluginApi(version, Discourse.__container__);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user