We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
HTMLIFrameElement
1 parent a7734e6 commit 9b46128Copy full SHA for 9b46128
lib/addStyles.js
@@ -30,7 +30,7 @@ var getElement = (function (fn) {
30
if (typeof memo[selector] === "undefined") {
31
var styleTarget = fn.call(this, selector);
32
// Special case to return head of iframe instead of iframe itself
33
- if (styleTarget instanceof window.HTMLIFrameElement) {
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
34
try {
35
// This will throw an exception if access to iframe is blocked
36
// due to cross-origin restrictions
0 commit comments