Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 2c6886e

Browse files
committed
change the time to 10 min for testing
1 parent 68ea47a commit 2c6886e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/indexPage/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ import BinaryLanding from './react-components/binary-landing';
1717
const today = new Date().getTime();
1818
// eslint-disable-next-line one-var
1919
const oneMilliSec = 1000;
20-
const sevenDays = 7;
21-
const oneMinute = 60;
22-
const oneDay = 24;
20+
// will uncomment before production release
21+
// const sevenDays = 7;
22+
// const oneMinute = 60;
23+
// const oneDay = 24;
2324

2425
export const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar'];
2526
// eslint-disable-next-line one-var
2627
export const bannerToken = getStorage('setDueDateForBanner');
2728

2829
// eslint-disable-next-line arrow-body-style
2930
export const expirationDate = () => {
30-
return today + oneMilliSec * oneMinute * oneMinute * oneDay * sevenDays;
31+
return today + oneMilliSec * 600;
3132
};
3233

3334
export const calcSetTimeoutValueBanner = expirationDate() - new Date().getTime();

0 commit comments

Comments
 (0)