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 #7941 from adobe/randy/issue-5110
Browse files Browse the repository at this point in the history
Handle doc switch during Live Preview startup
  • Loading branch information
ingorichter committed May 29, 2014
2 parents 778f7e8 + 5ba714a commit faafbda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,11 @@ define(function LiveDevelopment(require, exports, module) {
loadAgents().then(_openDeferred.resolve, _openDeferred.reject);

_getInitialDocFromCurrent().done(function (doc) {
if (doc && _liveDocument && doc === _liveDocument.doc) {
if (doc && _liveDocument) {
if (doc !== _liveDocument.doc) {
_createLiveDocumentForFrame(doc);
}

// Navigate from interstitial to the document
// Fires a frameNavigated event
if (_server) {
Expand Down

0 comments on commit faafbda

Please sign in to comment.