Revert "Remove the enableStampEditor preference" (bug 1879588)

This reverts commit e820688510.
This commit is contained in:
Calixte Denizet 2024-02-09 18:19:19 +01:00
parent 7cfcd00a38
commit bcc95460b6
4 changed files with 15 additions and 3 deletions

View file

@ -453,8 +453,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;