Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 5, 2019 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/f6975da26ac4af4151ff2a5934a527f3 to your computer and use it in GitHub Desktop.
Save bjoerntx/f6975da26ac4af4151ff2a5934a527f3 to your computer and use it in GitHub Desktop.
function restoreDocument() {
// if document exists, load it from the session storage
if (sessionStorage["document"]) {
$("#txReconnectMsg").show(); // hide dialog
TXTextControl.loadDocument(
TXTextControl.streamType.InternalUnicodeFormat,
sessionStorage.document);
}
else
$("#txReconnectMsg").hide(); // hide dialog
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment