diff --git a/src/js/_enqueues/wp/heartbeat.js b/src/js/_enqueues/wp/heartbeat.js
index 4f71c1cab4..c6950ef7df 100644
a
|
b
|
|
155 | 155 | */ |
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 | |
161 | 161 | if ( settings.minimalInterval && settings.mainInterval < settings.minimalInterval ) { |
… |
… |
|
176 | 176 | // Convert to milliseconds. |
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 | /* |
181 | 184 | * Switch the interval to 120 seconds by using the Page Visibility API. |