Unnötige console.log und console.errors entfernt.
This commit is contained in:
parent
824bf6fb82
commit
8d6d483c5d
@ -45,7 +45,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-success position-fixed bottom-0 end-0 mb-3 me-3 py-2" type="button">Abschließen</button>
|
||||
<script nonce="@nonce">
|
||||
const collapseNav = () => {
|
||||
document.addEventListener('click', function (event) {
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
<script src="~/js/app.js" asp-append-version="true"></script>
|
||||
<script src="~/lib/pspdfkit/pspdfkit.js" asp-append-version="true"></script>
|
||||
<script src="~/lib/bootstrap-cookie-consent-settings-main/bootstrap-cookie-consent-settings.js" asp-append-version="true"></script>
|
||||
<script src="~/lib/select2/dist/js/select2.min.js"></script>
|
||||
<script src="~/js/util.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
<main role="main">
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user