Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Fixes the missing OP favicon handling of the OpenIdAjaxTextBox.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jun 5, 2009
1 parent 1cc14d0 commit e8861d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url
box.dnoi_internal.op_logo.src = opLogo;
box.dnoi_internal.op_logo.style.visibility = 'visible';
box.dnoi_internal.op_logo.title = box.dnoi_internal.op_logo.originalTitle.replace('{0}', authenticatedBy.getHost());
} else {
}
trace("OP icon size: " + box.dnoi_internal.op_logo.fileSize);
if (opLogo == null || box.dnoi_internal.op_logo.fileSize == -1 /*IE*/ || box.dnoi_internal.op_logo.fileSize === undefined /* FF */) {
trace('recovering from missing OP icon');
box.dnoi_internal.op_logo.style.visibility = 'hidden';
box.dnoi_internal.openid_logo.style.visibility = 'visible';
box.dnoi_internal.openid_logo.title = box.dnoi_internal.op_logo.originalTitle.replace('{0}', authenticatedBy.getHost());
}
Expand Down

0 comments on commit e8861d9

Please sign in to comment.