Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
5feba966
Commit
5feba966
authored
Oct 22, 2017
by
Arthur Edelstein
Committed by
Georg Koppen
Oct 23, 2017
Browse files
Bug 23949: Fix bug in donation banner that prevented display
parent
b35a3e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/donation-banner.js
View file @
5feba966
...
...
@@ -52,7 +52,8 @@ const gStringBundle = Services.strings.createBundle(kPropertiesURL);
const
shouldShowBanner
=
function
(
shortLocale
)
{
try
{
// If our override test pref is true, then just show the banner regardless.
if
(
Services
.
prefs
.
getBoolPref
(
"
extensions.torbutton.testBanner
"
,
false
))
{
if
(
Services
.
prefs
.
prefHasUserValue
(
"
extensions.torbutton.testBanner
"
)
&&
Services
.
prefs
.
getBoolPref
(
"
extensions.torbutton.testBanner
"
)
===
true
)
{
return
true
;
}
// Don't show a banner if update is needed.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment