Commit 5654ed36 authored by techird's avatar techird

fix bug

parent 58eea84c
......@@ -516,10 +516,14 @@ $( function () {
function loadDraft( index ) {
var draft = draftManager.open( index ),
isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0;
if ( draft && isRemote ) {
isRemote;
if ( !draft ) return;
isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0;
if ( isRemote ) {
setRemotePath( draft.path, false );
}
draftManager.load();
if ( !isRemote ) {
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