mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #2490 from Gared/https_plugins_json
Use https to download plugins.json
This commit is contained in:
commit
3f08bf7405
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ exports.availablePlugins = null;
|
|||
var cacheTimestamp = 0;
|
||||
|
||||
exports.getAvailablePlugins = function(maxCacheAge, cb) {
|
||||
request("http://static.etherpad.org/plugins.json", function(er, response, plugins){
|
||||
request("https://static.etherpad.org/plugins.json", function(er, response, plugins){
|
||||
if (er) return cb && cb(er);
|
||||
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
|
||||
return cb && cb(null, exports.availablePlugins)
|
||||
|
|
Loading…
Reference in a new issue