Commit 5654ed36 authored by techird's avatar techird

fix bug

parent 58eea84c
...@@ -516,10 +516,14 @@ $( function () { ...@@ -516,10 +516,14 @@ $( function () {
function loadDraft( index ) { function loadDraft( index ) {
var draft = draftManager.open( index ), var draft = draftManager.open( index ),
isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0; isRemote;
if ( draft && isRemote ) { if ( !draft ) return;
isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0;
if ( isRemote ) {
setRemotePath( draft.path, false ); setRemotePath( draft.path, false );
} }
draftManager.load(); draftManager.load();
if ( !isRemote ) { if ( !isRemote ) {
setRemotePath( null, false ); setRemotePath( null, false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment