mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
'use strict';
|
|
|
|
const pluginUtils = require('./shared');
|
|
const defs = require('./plugin_defs');
|
|
|
|
exports.baseURL = '';
|
|
|
|
exports.update = async (modules) => {
|
|
const data = await jQuery.getJSON(
|
|
`${exports.baseURL}pluginfw/plugin-definitions.json?v=${clientVars.randomVersionString}`);
|
|
defs.plugins = data.plugins;
|
|
defs.parts = data.parts;
|
|
defs.hooks = pluginUtils.extractHooks(defs.parts, 'client_hooks', null, modules);
|
|
defs.loaded = true;
|
|
};
|