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");
|
||||
|
||||
if (entity && (entity.startsWith("http://") || entity.startsWith("https://"))) {
|
||||
this.entity = entity;
|
||||
this.requestProfileURL(this.entity);
|
||||
if (entity && entity.startsWith("http")) {
|
||||
if((entity.startsWith("http://") || entity.startsWith("https://"))) {
|
||||
this.entity = entity;
|
||||
this.requestProfileURL(this.entity);
|
||||
} else {
|
||||
this.entity = "https://" + entity;
|
||||
HostApp.setStringForKey(this.entity, "entity");
|
||||
this.requestProfileURL(this.entity);
|
||||
}
|
||||
} else {
|
||||
HostApp.authentificationDidNotSucceed("The entity should start with https:// or http://");
|
||||
}
|
||||
|
|
Reference in a new issue