Skip to content

Commit

Permalink
Do nothing when stylesheet not found
Browse files Browse the repository at this point in the history
  • Loading branch information
zhizhangchen committed Mar 26, 2013
1 parent a32c0fb commit 7990715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LiveDevelopment/Agents/CSSAgent.js
Expand Up @@ -90,6 +90,8 @@ define(function CSSAgent(require, exports, module) {
*/
function reloadCSSForDocument(doc) {
var style = styleForURL(doc.url);
if (!style)
return;
console.assert(style, "Style Sheet for document not loaded: " + doc.url);
Inspector.CSS.setStyleSheetText(style.styleSheetId, doc.getText(true));
}
Expand Down

0 comments on commit 7990715

Please sign in to comment.