mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Use https to retreive dyndns list.
This commit is contained in:
parent
e75a3b7ec8
commit
ce234bb4e7
1 changed files with 2 additions and 4 deletions
|
@ -484,10 +484,9 @@ app = Sammy('#main', function (sam) {
|
||||||
|
|
||||||
sam.get('#/postinstall/domain', function(c) {
|
sam.get('#/postinstall/domain', function(c) {
|
||||||
$('#masthead').hide();
|
$('#masthead').hide();
|
||||||
$.get('http://dyndns.yunohost.org/domains', function() {})
|
$.get('https://dyndns.yunohost.org/domains', function() {})
|
||||||
.done(function(data){
|
.done(function(data){
|
||||||
c.params.ddomains = data.map(function(dom){return '.'+dom;});
|
c.params.ddomains = data.map(function(dom){return '.'+dom;});
|
||||||
// c.view('domain/domain_add', c.params);
|
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
c.params.ddomains = ['.nohost.me', '.noho.st'];
|
c.params.ddomains = ['.nohost.me', '.noho.st'];
|
||||||
|
@ -703,10 +702,9 @@ app = Sammy('#main', function (sam) {
|
||||||
});
|
});
|
||||||
|
|
||||||
sam.get('#/domains/add', function (c) {
|
sam.get('#/domains/add', function (c) {
|
||||||
$.get('http://dyndns.yunohost.org/domains', function() {})
|
$.get('https://dyndns.yunohost.org/domains', function() {})
|
||||||
.done(function(data){
|
.done(function(data){
|
||||||
c.params.ddomains = data.map(function(dom){return '.'+dom;});
|
c.params.ddomains = data.map(function(dom){return '.'+dom;});
|
||||||
// c.view('domain/domain_add', c.params);
|
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
c.params.ddomains = ['.nohost.me', '.noho.st'];
|
c.params.ddomains = ['.nohost.me', '.noho.st'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue