File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var trackingIdMap = {
17
17
'image-editor' : 'UA-129999381-1' ,
18
18
'component' : 'UA-129987462-1'
19
19
} ;
20
+ var ms7days = 7 * 24 * 60 * 60 * 1000 ;
20
21
21
22
/**
22
23
* Check if the date has passed 7 days
@@ -26,7 +27,6 @@ var trackingIdMap = {
26
27
*/
27
28
function isExpired ( date ) {
28
29
var now = new Date ( ) . getTime ( ) ;
29
- var ms7days = 7 * 24 * 60 * 60 * 1000 ;
30
30
31
31
return now - date > ms7days ;
32
32
}
@@ -47,7 +47,7 @@ function sendHostname(applicationId) {
47
47
var date = window . localStorage . getItem ( applicationKeyForStorage ) ;
48
48
49
49
// 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 ) {
51
51
return ;
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments