File tree Expand file tree Collapse file tree
packages/sync/src/providers/http-polling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,11 +278,13 @@ function toggleVisbilityChange() {
278278 const wasActive = isActiveBrowser ;
279279 isActiveBrowser = document . visibilityState !== 'hidden' ;
280280 if ( isActiveBrowser && ! wasActive ) {
281- // Remove scheduled polling and repoll immediately when reactivated.
282- //
283- // This ensures that any updates by collaborators are immediately reflected
284- // in the document once the browser tab becomes active. Otherwise there would
285- // be a delay of 30 seconds before the updates came through.
281+ /*
282+ * Remove scheduled polling and repoll immediately when reactivated.
283+ *
284+ * This ensures that any updates by collaborators are immediately reflected
285+ * in the document once the browser tab becomes active. Otherwise there would
286+ * be a delay of 30 seconds before the updates came through.
287+ */
286288 if ( pollingTimeoutId ) {
287289 clearTimeout ( pollingTimeoutId ) ;
288290 pollingTimeoutId = null ;
You can’t perform that action at this time.
0 commit comments