Disable "Download Story as Plaintext" when disconnected

This is to help avoid confusion for people who want to backup their
current story after being disconnected from the server.
This commit is contained in:
Gnome Ann
2021-12-30 16:37:48 -05:00
parent 44eaab8515
commit f9c1e38ee8
2 changed files with 5 additions and 3 deletions

View File

@@ -2367,7 +2367,9 @@ $(document).ready(function(){
});
button_downloadtxt.on("click", function(ev) {
downloadStory('plaintext');
if(connected) {
downloadStory('plaintext');
}
});
button_load.on("click", function(ev) {