Skip to content

Commit

Permalink
[DE][mobile] refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Feb 3, 2025
1 parent 94054dd commit 2f71863
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/documenteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,12 @@ class MainController extends Component {
}
}

const fileType = data?.doc.fileType;
const isFormType = /^(pdf|docxf|oform|djvu|xps|oxps)$/.test(fileType);
const isPDF = fileType === 'pdf';

if(isFormType) {
if(/^(pdf|docxf|oform|djvu|xps|oxps)$/.test(data.doc.fileType)) {
this.changeEditorBrandColorForPdf();
}

if(isPDF) {
if(data.doc.fileType === 'pdf') {
if(this.permissions.fillForms === undefined) {
this.permissions.fillForms = this.permissions.edit !== false;
}
Expand Down

0 comments on commit 2f71863

Please sign in to comment.