Change domain for plugins.json request
This commit is contained in:
parent
4644073399
commit
3c6db077ed
|
@ -61,7 +61,7 @@ exports.availablePlugins = null;
|
||||||
var cacheTimestamp = 0;
|
var cacheTimestamp = 0;
|
||||||
|
|
||||||
exports.getAvailablePlugins = function(maxCacheAge, cb) {
|
exports.getAvailablePlugins = function(maxCacheAge, cb) {
|
||||||
request("http://etherpad.org/plugins.json", function(er, response, plugins){
|
request("http://static.etherpad.org/plugins.json", function(er, response, plugins){
|
||||||
if (er) return cb && cb(er);
|
if (er) return cb && cb(er);
|
||||||
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
|
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
|
||||||
return cb && cb(null, exports.availablePlugins)
|
return cb && cb(null, exports.availablePlugins)
|
||||||
|
|
Loading…
Reference in New Issue