mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Actually validate the input in AnnotationBorderStyle.setStyle
This commit is contained in:
parent
85363f4566
commit
15b3806937
1 changed files with 2 additions and 2 deletions
|
@ -492,11 +492,11 @@ class AnnotationBorderStyle {
|
|||
*
|
||||
* @public
|
||||
* @memberof AnnotationBorderStyle
|
||||
* @param {Object} style - The style object
|
||||
* @param {Name} style - The annotation style.
|
||||
* @see {@link shared/util.js}
|
||||
*/
|
||||
setStyle(style) {
|
||||
if (!style) {
|
||||
if (!isName(style)) {
|
||||
return;
|
||||
}
|
||||
switch (style.name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue