Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3408 from adobe/jasonsanjose/issue-3403
Browse files Browse the repository at this point in the history
Only support live preview for known subset of HTML document extensions.
  • Loading branch information
redmunds committed Apr 10, 2013
2 parents 54a89b9 + db8e3ff commit 20b76b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/LiveDevelopment/Agents/CSSAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ define(function CSSAgent(require, exports, module) {
* @param {string} url
*/
function styleForURL(url) {
return _urlToStyle[_canonicalize(url)];
if (_urlToStyle) {
return _urlToStyle[_canonicalize(url)];
}

return null;
}

/** Get a list of all loaded stylesheet files by URL */
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ define(function LiveDevelopment(require, exports, module) {
return false;
}

return true;
return _isHtmlFileExt(localPath);
};

/**
Expand Down

0 comments on commit 20b76b0

Please sign in to comment.