Changeset 53226
- Timestamp:
- 04/20/2022 05:53:25 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/heartbeat.js
r50547 r53226 156 156 if ( options.minimalInterval ) { 157 157 options.minimalInterval = parseInt( options.minimalInterval, 10 ); 158 settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval * 1000: 0;158 settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval : 0; 159 159 } 160 160 … … 177 177 settings.mainInterval = settings.mainInterval * 1000; 178 178 settings.originalInterval = settings.mainInterval; 179 if ( settings.minimalInterval ) { 180 settings.minimalInterval = settings.minimalInterval * 1000; 181 } 179 182 180 183 /*
Note: See TracChangeset
for help on using the changeset viewer.