Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Feb 19, 2024
1 parent 49cad42 commit 5f85766
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
if (!config.mime) {
return true;
}

let mimeTypes = config.mime;
mimeTypes.forEach((mime) => {
OCA.Files.fileActions.registerAction({
Expand All @@ -340,11 +340,11 @@
iconClass: "icon-onlyoffice-open",
actionHandler: OCA.Onlyoffice.FileClick
});

if (config.def) {
OCA.Files.fileActions.setDefault(mime, "onlyofficeOpen");
}

if (config.conv) {
OCA.Files.fileActions.registerAction({
name: "onlyofficeConvert",
Expand All @@ -355,7 +355,7 @@
actionHandler: OCA.Onlyoffice.FileConvertClick
});
}

if (config.fillForms) {
OCA.Files.fileActions.registerAction({
name: "onlyofficeFill",
Expand All @@ -366,7 +366,7 @@
actionHandler: OCA.Onlyoffice.FileClick
});
}

if (config.createForm) {
OCA.Files.fileActions.registerAction({
name: "onlyofficeCreateForm",
Expand All @@ -377,7 +377,7 @@
actionHandler: OCA.Onlyoffice.CreateFormClick
});
}

if (config.saveas && !$("#isPublic").val()) {
OCA.Files.fileActions.registerAction({
name: "onlyofficeDownload",
Expand Down

0 comments on commit 5f85766

Please sign in to comment.