minimize return statement
This commit is contained in:
@@ -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 [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user