Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1030094 - Fix bustage; check if we have mozL10n for tests. r=ryanvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbigniew Braniecki committed Jun 27, 2014
1 parent 2be0655 commit 2cfd8b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/system/js/system_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@
this.element = document.getElementById(this.instanceID);

// Required before 2.1 because we don't have L10n MutationObserver yet
navigator.mozL10n.translateFragment(this.element);
// Keep if'd for tests which don't require mock_l10n
if (navigator.mozL10n) {
navigator.mozL10n.translateFragment(this.element);
}
};

/**
Expand Down

0 comments on commit 2cfd8b8

Please sign in to comment.