Skip to content

Commit

Permalink
rebase + refactor sumo link
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxbolts committed Jan 18, 2024
1 parent 02d9a3b commit 86b6820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ constexpr const char* MOZILLA_VPN_SUMO_URL =
constexpr const char* SUMO_DNS =
"https://support.mozilla.org/kb/how-do-i-change-my-dns-settings";

constexpr const char* SUMO_DEVICES =
"https://support.mozilla.org/kb/"
"how-add-devices-your-mozilla-vpn-subscription";

PRODBETAEXPR(QString, contactSupportUrl, "https://accounts.firefox.com/support",
"https://accounts.stage.mozaws.net/support")

Expand Down
6 changes: 2 additions & 4 deletions src/mozillavpn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,10 +1385,8 @@ void MozillaVPN::registerUrlOpenerLabels() {
uo->registerUrlLabel("sumoDns",
[]() -> QString { return Constants::SUMO_DNS; });

uo->registerUrlLabel("sumoDevices", []() -> QString {
return "https://support.mozilla.org/en-US/kb/"
"how-add-devices-your-mozilla-vpn-subscription";
});
uo->registerUrlLabel("sumoDevices",
[]() -> QString { return Constants::SUMO_DEVICES; });
}

void MozillaVPN::errorHandled() {
Expand Down

0 comments on commit 86b6820

Please sign in to comment.