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

Remove HTML file checking in setDocInfo #3218

Merged
merged 2 commits into from
Mar 26, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ define(function LiveDevelopment(require, exports, module) {
doc.url = parentUrl + encodeURI(matches[2]);

// the root represents the document that should be displayed in the browser
// for live development (the file for HTML files, index.html for others)
// for live development (the file for HTML files)
// TODO: Issue #2033 Improve how default page is determined
rootUrl = (_isHtmlFileExt(matches[3]) ? doc.url : parentUrl + "index.html");
doc.root = { url: rootUrl };
doc.root = { url: doc.url };
}

/** Get the current document from the document manager
Expand Down