Unnötige console.log und console.errors entfernt.

This commit is contained in:
Developer 02 2024-05-22 16:34:14 +02:00
parent 824bf6fb82
commit 8d6d483c5d
5 changed files with 1 additions and 13 deletions

View File

@ -45,7 +45,6 @@
</div> </div>
</div> </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"> <script nonce="@nonce">
const collapseNav = () => { const collapseNav = () => {
document.addEventListener('click', function (event) { document.addEventListener('click', function (event) {

View File

@ -22,7 +22,6 @@
<script src="~/js/app.js" asp-append-version="true"></script> <script src="~/js/app.js" asp-append-version="true"></script>
<script src="~/lib/pspdfkit/pspdfkit.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/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> <script src="~/js/util.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false) @await RenderSectionAsync("Scripts", required: false)
<main role="main"> <main role="main">

View File

@ -3,8 +3,6 @@
const annotations = [] const annotations = []
document.elements.forEach((element) => { document.elements.forEach((element) => {
console.debug('Creating annotation for element', element.id)
const [annotation, formField] = this.createAnnotationFromElement(element) const [annotation, formField] = this.createAnnotationFromElement(element)
annotations.push(annotation) annotations.push(annotation)
annotations.push(formField) annotations.push(formField)

View File

@ -38,7 +38,6 @@ class App {
const documentResponse = this.documentBytes const documentResponse = this.documentBytes
if (documentResponse.fatal || documentResponse.error) { if (documentResponse.fatal || documentResponse.error) {
console.error(documentResponse.error)
return Swal.fire({ return Swal.fire({
title: 'Fehler', title: 'Fehler',
text: 'Dokument konnte nicht geladen werden!', text: 'Dokument konnte nicht geladen werden!',
@ -66,7 +65,6 @@ class App {
) )
// Load annotations into PSPDFKit // Load annotations into PSPDFKit
console.debug('Loading annotations..')
try { try {
this.signatureCount = this.currentDocument.elements.length this.signatureCount = this.currentDocument.elements.length
@ -85,12 +83,11 @@ class App {
}) })
} }
} catch (e) { } catch (e) {
console.error(e)
} }
} }
handleAnnotationsLoad(loadedAnnotations) { handleAnnotationsLoad(loadedAnnotations) {
console.debug('annotations loaded', loadedAnnotations.toJS()) loadedAnnotations.toJS()
} }
handleAnnotationsChange() { } handleAnnotationsChange() { }
@ -184,7 +181,6 @@ class App {
try { try {
await this.Instance.save() await this.Instance.save()
} catch (e) { } catch (e) {
console.error(e)
Swal.fire({ Swal.fire({
title: 'Fehler', title: 'Fehler',
text: 'Umschlag konnte nicht signiert werden!', text: 'Umschlag konnte nicht signiert werden!',
@ -196,7 +192,6 @@ class App {
// Export annotation data and save to database // Export annotation data and save to database
try { try {
const json = await this.Instance.exportInstantJSON() const json = await this.Instance.exportInstantJSON()
console.log(json)
const postEnvelopeResult = await this.Network.postEnvelope( const postEnvelopeResult = await this.Network.postEnvelope(
this.envelopeKey, this.envelopeKey,
this.currentDocument.id, this.currentDocument.id,
@ -223,7 +218,6 @@ class App {
return true return true
} catch (e) { } catch (e) {
console.error(e)
return false return false
} }
} }

View File

@ -47,8 +47,6 @@
configurePSPDFKit(instance, handler) { configurePSPDFKit(instance, handler) {
const toolbarItems = this.getToolbarItems(instance, handler) const toolbarItems = this.getToolbarItems(instance, handler)
instance.setToolbarItems(toolbarItems) instance.setToolbarItems(toolbarItems)
console.debug('PSPDFKit configured!')
} }
annotationRenderer(data) { annotationRenderer(data) {