Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
runat-1128988: Be defensive about domSheet.ownerNode
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Walker <[email protected]>
  • Loading branch information
joewalker committed Mar 17, 2015
1 parent 5d83bd3 commit 75877de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gcli/types/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Resource.TYPE_CSS = 'text/css';
function CssResource(domSheet) {
this.name = domSheet.href;
if (!this.name) {
this.name = domSheet.ownerNode.id ?
this.name = domSheet.ownerNode && domSheet.ownerNode.id ?
'css#' + domSheet.ownerNode.id :
'inline-css';
}
Expand Down

1 comment on commit 75877de

@bgrins
Copy link

@bgrins bgrins commented on 75877de Mar 19, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.