Skip to content

Commit

Permalink
draft is considered a saved state.
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Apr 10, 2010
1 parent 370ee3b commit 87f4c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idoc.js
Expand Up @@ -42,6 +42,7 @@ chrome.extension.onRequest.addListener(
else sendResponse({ok:false});
}
else if(request.edit == 'draft') {
haveSaved = true;
sendResponse({ok:true, save:name,
content: document.getElementsByTagName('html')[0].innerHTML});
}
Expand Down Expand Up @@ -170,7 +171,6 @@ window.onbeforeunload = function(e) {
e.returnValue = asked;
return asked;
}
else return;
}

document.onkeydown = function(e) {
Expand Down

0 comments on commit 87f4c5f

Please sign in to comment.