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
2f8570e0
Commit
2f8570e0
authored
Nov 11, 2016
by
Arthur Edelstein
Browse files
Bug 20414.4: Delay banner 1 more day and fix minor error in code
parent
f6ad4d7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/chrome/content/aboutTor/donation_banner.js
View file @
2f8570e0
...
...
@@ -59,9 +59,9 @@ let shouldShowBanner = function () {
kDonationPageLocales
.
indexOf
(
kBrowserLocaleShort
)
===
-
1
)
{
return
false
;
}
// Only show banner between 2016 Nov 2
2
and 2017 Jan 25.
// Only show banner between 2016 Nov 2
3
and 2017 Jan 25.
let
now
=
new
Date
();
let
start
=
new
Date
(
2016
,
10
,
2
2
);
let
start
=
new
Date
(
2016
,
10
,
2
3
);
let
end
=
new
Date
(
2017
,
0
,
26
);
let
shownCountPref
=
"
extensions.torbutton.donation_banner2016.shown_count
"
;
if
(
now
<
start
||
now
>
end
)
{
...
...
@@ -175,7 +175,7 @@ let observeAttribute = function (target, attributeName, callback) {
}
});
});
observer
.
observe
(
document
.
body
,
{
attributes
:
true
});
observer
.
observe
(
target
,
{
attributes
:
true
});
return
()
=>
observer
.
disconnect
();
};
...
...
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