Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active June 8, 2020 14:09
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/5045d9b58a6d82496951300241fd568f to your computer and use it in GitHub Desktop.
Save bjoerntx/5045d9b58a6d82496951300241fd568f to your computer and use it in GitHub Desktop.
function loadDocument(Document) {
TXDocumentViewer.loadDocument(Document.documentData, Document.documentName);
}
var documentLoading;
function loadInitialDocument(Document) {
documentLoading = true;
window.addEventListener("documentViewerLoaded", function () {
if (documentLoading === true)
loadDocument(Document);
documentLoading = false;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment