aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/curCSS.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/curCSS.js')
-rw-r--r--src/css/curCSS.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index 67fc27525..8a01e2f74 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -19,7 +19,7 @@ if ( window.getComputedStyle ) {
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
var view = elem.ownerDocument.defaultView;
- if ( !view.opener ) {
+ if ( !view || !view.opener ) {
view = window;
}