Unnötige console.log und console.errors entfernt.
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
const annotations = []
|
||||
|
||||
document.elements.forEach((element) => {
|
||||
console.debug('Creating annotation for element', element.id)
|
||||
|
||||
const [annotation, formField] = this.createAnnotationFromElement(element)
|
||||
annotations.push(annotation)
|
||||
annotations.push(formField)
|
||||
|
||||
@@ -38,7 +38,6 @@ class App {
|
||||
const documentResponse = this.documentBytes
|
||||
|
||||
if (documentResponse.fatal || documentResponse.error) {
|
||||
console.error(documentResponse.error)
|
||||
return Swal.fire({
|
||||
title: 'Fehler',
|
||||
text: 'Dokument konnte nicht geladen werden!',
|
||||
@@ -66,7 +65,6 @@ class App {
|
||||
)
|
||||
|
||||
// Load annotations into PSPDFKit
|
||||
console.debug('Loading annotations..')
|
||||
|
||||
try {
|
||||
this.signatureCount = this.currentDocument.elements.length
|
||||
@@ -85,12 +83,11 @@ class App {
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
handleAnnotationsLoad(loadedAnnotations) {
|
||||
console.debug('annotations loaded', loadedAnnotations.toJS())
|
||||
loadedAnnotations.toJS()
|
||||
}
|
||||
|
||||
handleAnnotationsChange() { }
|
||||
@@ -184,7 +181,6 @@ class App {
|
||||
try {
|
||||
await this.Instance.save()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
Swal.fire({
|
||||
title: 'Fehler',
|
||||
text: 'Umschlag konnte nicht signiert werden!',
|
||||
@@ -196,7 +192,6 @@ class App {
|
||||
// Export annotation data and save to database
|
||||
try {
|
||||
const json = await this.Instance.exportInstantJSON()
|
||||
console.log(json)
|
||||
const postEnvelopeResult = await this.Network.postEnvelope(
|
||||
this.envelopeKey,
|
||||
this.currentDocument.id,
|
||||
@@ -223,7 +218,6 @@ class App {
|
||||
|
||||
return true
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,8 +47,6 @@
|
||||
configurePSPDFKit(instance, handler) {
|
||||
const toolbarItems = this.getToolbarItems(instance, handler)
|
||||
instance.setToolbarItems(toolbarItems)
|
||||
|
||||
console.debug('PSPDFKit configured!')
|
||||
}
|
||||
|
||||
annotationRenderer(data) {
|
||||
|
||||
Reference in New Issue
Block a user