Skip to content

Commit af5a7ee

Browse files
author
Sohee Lee
committed
fix: apply code review
1 parent e694675 commit af5a7ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var trackingIdMap = {
1717
'image-editor': 'UA-129999381-1',
1818
'component': 'UA-129987462-1'
1919
};
20+
var ms7days = 7 * 24 * 60 * 60 * 1000;
2021

2122
/**
2223
* Check if the date has passed 7 days
@@ -26,7 +27,6 @@ var trackingIdMap = {
2627
*/
2728
function isExpired(date) {
2829
var now = new Date().getTime();
29-
var ms7days = 7 * 24 * 60 * 60 * 1000;
3030

3131
return now - date > ms7days;
3232
}
@@ -47,7 +47,7 @@ function sendHostname(applicationId) {
4747
var date = window.localStorage.getItem(applicationKeyForStorage);
4848

4949
// skip if the flag is defined and is set to false explicitly
50-
if (!type.isUndefined(window.tui) && window.tui.usageStatistics === false) {
50+
if (tui.usageStatistics === false) {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)