diff --git a/fixtures.js b/fixtures.js index 4ac1e3df..e334e1b4 100644 --- a/fixtures.js +++ b/fixtures.js @@ -81,7 +81,7 @@ } doc.open(); - doc.defaultView.onerror = captureErrors; + doc['defaultView' in doc ? 'defaultView' : 'parentWindow'].onerror = captureErrors; doc.write(html); doc.close(); };