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 = {
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 */
2728function 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
You can’t perform that action at this time.
0 commit comments