fixed #213
This commit is contained in:
parent
58366ccd53
commit
39c938b29b
1 changed files with 9 additions and 3 deletions
|
@ -47,9 +47,15 @@ function(HostApp, Paths, Hmac) {
|
||||||
|
|
||||||
var entity = HostApp.stringForKey("entity");
|
var entity = HostApp.stringForKey("entity");
|
||||||
|
|
||||||
if (entity && (entity.startsWith("http://") || entity.startsWith("https://"))) {
|
if (entity && entity.startsWith("http")) {
|
||||||
this.entity = entity;
|
if((entity.startsWith("http://") || entity.startsWith("https://"))) {
|
||||||
this.requestProfileURL(this.entity);
|
this.entity = entity;
|
||||||
|
this.requestProfileURL(this.entity);
|
||||||
|
} else {
|
||||||
|
this.entity = "https://" + entity;
|
||||||
|
HostApp.setStringForKey(this.entity, "entity");
|
||||||
|
this.requestProfileURL(this.entity);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
HostApp.authentificationDidNotSucceed("The entity should start with https:// or http://");
|
HostApp.authentificationDidNotSucceed("The entity should start with https:// or http://");
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue