|
@@ -408,12 +408,11 @@ else if(settingsToggles[company]) shouldblock = true;
|
|
|
if (isMainFrame && notificationsEnabled) {
|
|
|
let displayname = hostname.replace("www.", "");
|
|
|
let msg =
|
|
|
- "Blocked " +
|
|
|
- displayname +
|
|
|
- " as it is in " +
|
|
|
+ displayname +
|
|
|
+ browser.i18n.getMessage('urlwasblocked') +
|
|
|
company[0].toUpperCase() +
|
|
|
company.slice(1) +
|
|
|
- " cloud and you chose to block this cloud";
|
|
|
+ browser.i18n.getMessage('urlwasblockedtwo');
|
|
|
showNotifications(msg);
|
|
|
}
|
|
|
counts[company] += 1;
|
|
@@ -515,12 +514,11 @@ else {
|
|
|
let displayname = hostname.replace("www.", "");
|
|
|
|
|
|
let msg =
|
|
|
- "Blocked " +
|
|
|
- displayname +
|
|
|
- " as it is in " +
|
|
|
- result.whichCompany[0].toUpperCase() +
|
|
|
- result.whichCompany.slice(1) +
|
|
|
- " cloud and you chose to block this cloud";
|
|
|
+ displayname +
|
|
|
+ browser.i18n.getMessage('urlwasblocked') +
|
|
|
+ result.whichCompany[0].toUpperCase() +
|
|
|
+ result.whichCompany.slice(1) +
|
|
|
+ browser.i18n.getMessage('urlwasblockedtwo');
|
|
|
showNotifications(msg);
|
|
|
}
|
|
|
// showPerTabCount(details.tabId);
|
|
@@ -676,12 +674,11 @@ result = checkIPisinRange(dns.addresses,i);
|
|
|
let displayname = hostname.replace("www.", "");
|
|
|
|
|
|
let msg =
|
|
|
- "Blocked " +
|
|
|
displayname +
|
|
|
- " as it is in " +
|
|
|
- result.whichCompany[0].toUpperCase() +
|
|
|
- result.whichCompany.slice(1) +
|
|
|
- " cloud and you chose to block this cloud";
|
|
|
+ browser.i18n.getMessage('urlwasblocked') +
|
|
|
+ result.whichCompany[0].toUpperCase() +
|
|
|
+ result.whichCompany.slice(1) +
|
|
|
+ browser.i18n.getMessage('urlwasblockedtwo');
|
|
|
showNotifications(msg);
|
|
|
}
|
|
|
//console.log(counts);
|
|
@@ -945,7 +942,7 @@ async function checkIsTorBrowser() {
|
|
|
);
|
|
|
console.log("https://gitlab.com/gkrishnaks/cloud-firewall/issues/18");
|
|
|
showNotifications(
|
|
|
- "Tor Browser is not supported. You can UNINSTALL this addon. Refer issue #18 in project Gitlab for Open Feature Request for Tor Browser Support"
|
|
|
+ browser.i18n.getMessage("torwarning")
|
|
|
);
|
|
|
isTBB = true;
|
|
|
} else {
|
|
@@ -1242,7 +1239,7 @@ async function resetCache(shouldRemoveCounts) {
|
|
|
console.log("Cloud Firewall cache reset");
|
|
|
try {
|
|
|
await browser.storage.local.set({ cache: "" });
|
|
|
- showNotifications("Your local offline cache has been deleted");
|
|
|
+ showNotifications(browser.i18n.getMessage('cachedeleted'));
|
|
|
} catch (e) {
|
|
|
console.log("Cloud Firewall: Issue with clearing offline cache");
|
|
|
}
|