mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #17651 from calixteman/add_enableStamp_pref
Revert "Remove the `enableStampEditor` preference" (bug 1879588)
This commit is contained in:
commit
5cfaff508c
4 changed files with 15 additions and 3 deletions
|
@ -454,8 +454,8 @@ const PDFViewerApplication = {
|
|||
|
||||
if (appConfig.annotationEditorParams) {
|
||||
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
||||
if (!isOffscreenCanvasSupported) {
|
||||
appConfig.toolbar?.editorStampButton?.classList.add("hidden");
|
||||
if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) {
|
||||
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
|
||||
}
|
||||
|
||||
const editorHighlightButton = appConfig.toolbar?.editorHighlightButton;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue