minimize return statement

This commit is contained in:
2025-09-19 15:28:11 +02:00
parent 9a2959b307
commit 4fcef41fc0
2 changed files with 2 additions and 18 deletions

View File

@@ -14,18 +14,7 @@
sidebarMode: PSPDFKit.SidebarMode.THUMBNAILS,
}),
isEditableAnnotation: function (annotation) {
// Check if the annotation is a signature
// This will allow new signatures, but not allow edits.
if (annotation.isSignature || annotation.description == 'FRAME') {
return false
}
return true
//return !annotation.isSignature;
},
customRenderers: {
Annotation: annotationRenderer,
return !(annotation.isSignature || annotation.description === 'FRAME')
},
});
}
@@ -58,11 +47,6 @@ function addToolbarItems(instance, handler) {
instance.setToolbarItems(toolbarItems)
}
function annotationRenderer(data) {
// leave everything as is
return null
}
function getWritableItems(callback) {
return [
{