Follow-up I5357a909: Fix logic for autosave from edited state

Bug: T189071
Change-Id: I5439a73ffcf26795f58625720b1f1667ee3965cc
This commit is contained in:
Ed Sanders 2018-03-07 18:38:35 +00:00
parent 16437646fe
commit 045f3b7640

View file

@ -476,7 +476,7 @@ ve.init.mw.ArticleTarget.prototype.surfaceReady = function () {
}
} else {
// ...otherwise store this document state for later recovery
if ( !this.fromEditedState ) {
if ( this.fromEditedState ) {
// Store immediately if the document was previously edited
// (e.g. in a different mode)
this.storeDocState( this.originalHtml );