Skip to content

A platform for community discussion. Free, open, simple.

PERF: Remove old fullscreen-detection code (#31075)

David Taylor7e6107aad7e6
diff --git a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
index 6d65652048f..cb9572fbd78 100644
--- a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
+++ b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
@@ -67,16 +67,6 @@ export default class ScrollingPostStream extends MountWidget {
return;
}
- // We use this because watching videos fullscreen in Chrome was super buggy
- // otherwise. Thanks to arrendek from q23 for the technique.
- const topLeftCornerElement = document.elementFromPoint(0, 0);
- if (
- topLeftCornerElement &&
- topLeftCornerElement.tagName.toUpperCase() === "IFRAME"
- ) {
- return;
- }
-
const windowHeight = window.innerHeight;
const slack = Math.round(windowHeight * 5);
const onscreen = [];