Skip to main content
Sign in
Snippets Groups Projects
Commit 9419bbc3 authored by henry's avatar henry Committed by richard
Browse files

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in...

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection

Bug 41814: Use "Tor bridge" instead of "vanilla bridge".
parent f8f90f9f
No related branches found
No related tags found
1 merge request!910Use "Tor bridge" instead of "vanilla bridge"
......@@ -665,12 +665,15 @@ const gBridgeGrid = {
row.cells.push({ element, focusEl, columnIndex, row });
}
// TODO: properly handle "vanilla" bridges?
document.l10n.setAttributes(
row.element.querySelector(".tor-bridges-type-cell"),
"tor-bridges-type-prefix",
{ type: details?.transport ?? "vanilla" }
);
const transport = details?.transport ?? "vanilla";
const typeCell = row.element.querySelector(".tor-bridges-type-cell");
if (transport === "vanilla") {
document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix-generic");
} else {
document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix", {
type: transport,
});
}
row.element.querySelector(".tor-bridges-address-cell").textContent =
bridgeLine;
......
......
......@@ -474,12 +474,18 @@ const gProvideBridgeDialog = {
emojiBlock.append(cell);
}
// TODO: properly handle "vanilla" bridges?
const transport = details?.transport ?? "vanilla";
const typeCell = rowEl.querySelector(".tor-bridges-type-cell");
if (transport === "vanilla") {
document.l10n.setAttributes(
rowEl.querySelector(".tor-bridges-type-cell"),
"tor-bridges-type-prefix",
{ type: details?.transport ?? "vanilla" }
typeCell,
"tor-bridges-type-prefix-generic"
);
} else {
document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix", {
type: transport,
});
}
rowEl.querySelector(".tor-bridges-address-cell").textContent = bridgeLine;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment