diff options
Diffstat (limited to 'apps/files_sharing/src/files_sharing.js')
-rw-r--r-- | apps/files_sharing/src/files_sharing.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js index 56bd2f67613..4e90afaf943 100644 --- a/apps/files_sharing/src/files_sharing.js +++ b/apps/files_sharing/src/files_sharing.js @@ -1,12 +1,12 @@ -__webpack_nonce__ = btoa(OC.requestToken) -__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/') +__webpack_nonce__ = btoa(OC.requestToken); +__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/'); -import '../js/app' -import '../js/sharedfilelist' -import '../js/sharetabview' -import '../js/share' -import '../js/sharebreadcrumbview' +import '../js/app'; +import '../js/sharedfilelist'; +import '../js/sharetabview'; +import '../js/share'; +import '../js/sharebreadcrumbview'; window.OCP.Collaboration.registerType('files', { action: () => { @@ -14,15 +14,15 @@ window.OCP.Collaboration.registerType('files', { OC.dialogs.filepicker('Link to a file', function (f) { const client = OC.Files.getClient(); client.getFileInfo(f).then((status, fileInfo) => { - resolve(fileInfo.id) + resolve(fileInfo.id); }, () => { - reject() - }) + reject(); + }); }, false); - }) + }); }, /** used in "Link to a {typeString}" */ typeString: t('files_sharing', 'file') }); -window.OCA.Sharing = OCA.Sharing +window.OCA.Sharing = OCA.Sharing; |