Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Update commondialog.js to understand Firefox >=50
Browse files Browse the repository at this point in the history
Fixes #677
  • Loading branch information
luckyrat committed Jun 26, 2016
1 parent bbcd4cc commit 9740bc4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Firefox addon/KeeFox/chrome/content/commonDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,14 @@ var keeFoxDialogManager = {
currentRealmL10nPattern = this._cdBundle.GetStringFromName("EnterLoginForRealm");
} catch (exception)
{
currentRealmL10nPattern = this._promptBundle.GetStringFromName("EnterLoginForRealm");
// Exception expected in Firefox >= 50 and Thunderbird
try
{
currentRealmL10nPattern = this._cdBundle.GetStringFromName("EnterLoginForRealm2");
} catch (exception2)
{
currentRealmL10nPattern = this._promptBundle.GetStringFromName("EnterLoginForRealm");
}
}

var realmFirst = false;
Expand Down

0 comments on commit 9740bc4

Please sign in to comment.