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

Commit

Permalink
Correct spelling of 'sentinel' throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhirsch committed Apr 18, 2017
1 parent 88a0ed6 commit e8c5809
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion addon/webextension/background/communication.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ this.communication = (function() {
}


// A singleton/sentinal (with a name):
// A singleton/sentinel (with a name):
exports.NO_BOOTSTRAP = {name: "communication.NO_BOOTSTRAP"};

return exports;
Expand Down
24 changes: 12 additions & 12 deletions addon/webextension/onboarding/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,30 @@ this.slides = (function() {
// termsAndPrivacyNoticeCloudServices is a more complicated substitution:
let termsContainer = doc.querySelector(".onboarding-legal-notice");
termsContainer.innerHTML = "";
let termsSentinal = "__TERMS__";
let privacySentinal = "__PRIVACY__";
let sentinalSplitter = "!!!";
let termsSentinel = "__TERMS__";
let privacySentinel = "__PRIVACY__";
let sentinelSplitter = "!!!";
let linkTexts = {
[termsSentinal]: browser.i18n.getMessage("termsAndPrivacyNoticeTermsLink"),
[privacySentinal]: browser.i18n.getMessage("termsAndPrivacyNoticyPrivacyLink")
[termsSentinel]: browser.i18n.getMessage("termsAndPrivacyNoticeTermsLink"),
[privacySentinel]: browser.i18n.getMessage("termsAndPrivacyNoticyPrivacyLink")
};
let linkUrls = {
[termsSentinal]: "https://www.mozilla.org/about/legal/terms/services/",
[privacySentinal]: "https://www.mozilla.org/privacy/firefox-cloud/"
[termsSentinel]: "https://www.mozilla.org/about/legal/terms/services/",
[privacySentinel]: "https://www.mozilla.org/privacy/firefox-cloud/"
};
let text = browser.i18n.getMessage(
"termsAndPrivacyNoticeCloudServices",
[sentinalSplitter + termsSentinal + sentinalSplitter,
sentinalSplitter + privacySentinal + sentinalSplitter]);
let parts = text.split(sentinalSplitter);
[sentinelSplitter + termsSentinel + sentinelSplitter,
sentinelSplitter + privacySentinel + sentinelSplitter]);
let parts = text.split(sentinelSplitter);
for (let part of parts) {
let el;
if (part === termsSentinal || part === privacySentinal) {
if (part === termsSentinel || part === privacySentinel) {
el = doc.createElement("a");
el.href = linkUrls[part];
el.textContent = linkTexts[part];
el.target = "_blank";
el.id = (part === termsSentinal) ? "terms" : "privacy";
el.id = (part === termsSentinel) ? "terms" : "privacy";
} else {
el = doc.createTextNode(part);
}
Expand Down

0 comments on commit e8c5809

Please sign in to comment.