mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
Bump Plugin API version for icon api
This commit is contained in:
parent
6dfa3625df
commit
41afd9c818
|
@ -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
|
||||
const PLUGIN_API_VERSION = '0.8.7';
|
||||
const PLUGIN_API_VERSION = '0.8.8';
|
||||
|
||||
class PluginApi {
|
||||
constructor(version, container) {
|
||||
|
@ -550,7 +550,7 @@ function cmpVersions (a, b) {
|
|||
|
||||
function getPluginApi(version) {
|
||||
version = version.toString();
|
||||
if (cmpVersions(version,PLUGIN_API_VERSION) <= 0) {
|
||||
if (cmpVersions(version, PLUGIN_API_VERSION) <= 0) {
|
||||
if (!_pluginv01) {
|
||||
_pluginv01 = new PluginApi(version, Discourse.__container__);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user