Skip to content

Commit d144882

Browse files
Multiline comment style.
Co-Authored-by: westonruter <westonruter@git.wordpress.org>
1 parent 1694d51 commit d144882

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

packages/sync/src/providers/http-polling/polling-manager.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)