We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
forceImplementation
1 parent f6a80b9 commit 949fffbCopy full SHA for 949fffb
packages/webshell/src/features/HandleHTMLDimensionsFeature.webjs
@@ -75,11 +75,12 @@ function HandleHTMLDimensionsFeature(context) {
75
window.addEventListener('resize', pollingPostDimensions);
76
setInterval(pollingPostDimensions, pollingInterval);
77
pollingPostDimensions();
78
- context.warn(
79
- "This browser doesn't support either MutationObserver or ResizeObserver." +
80
- 'The dimensions will still be read every' +
81
- pollingInterval +
82
- 'ms and committed when a change is observed.'
83
- );
+ forceImplementation !== 'polling' &&
+ context.warn(
+ "This browser doesn't support either MutationObserver or ResizeObserver." +
+ 'The dimensions will still be read every ' +
+ pollingInterval +
+ 'ms and committed when a change is observed.'
84
+ );
85
}
86
0 commit comments