Commit 086a41b7 authored by techird's avatar techird

merge from dev

parents f83f57fe 5654ed36
......@@ -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