We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02cafdc commit b32f743Copy full SHA for b32f743
2 files changed
src/js/main.js
@@ -2,6 +2,7 @@ import './anchor-positioning.js'
2
import './headernav.js'
3
import './mediaqueries.js'
4
import './newsreel.js'
5
+import './popover-support.js'
6
import './sidebarposts.js'
7
import './slideshow.js'
8
import './toggles.js'
src/js/popover-support.js
@@ -0,0 +1,7 @@
1
+// ***** Popover Support for CSS ***** //
+
+// If the popover element is detected in the browser, remove the no-popover class from the html tag.
+if (window.HTMLElement.prototype.hasOwnProperty('popover')) { // eslint-disable-line no-prototype-builtins
+ document.querySelector('html').classList.remove('no-popover')
+}
0 commit comments