Skip to content

Commit

Permalink
feat(office): change option name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze Xiao committed Jul 14, 2020
1 parent 8bd1c2b commit 112a8ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/viewers/office/OfficeLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OfficeLoader extends AssetLoader {
determineViewer(file, disabledViewers = [], viewerOptions = {}) {
// The Office viewer is disabled when this is a password protected shared link
const isDisabledDueToPasswordProtectedSharedLink = file.shared_link && file.shared_link.is_password_enabled;
const maxFileSize = getProp(viewerOptions, 'Office.excelOnlinePreviewerMaxSize', FIVE_MB);
const maxFileSize = getProp(viewerOptions, 'Office.maxFileSize', FIVE_MB);
// If the user does not have permission to download the file, the file is larger than Appconf file size or 5MB,
// or isDisabledDueToSharedLink is true, then disable the Office viewer
if (
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/office/__tests__/OfficeLoader-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('lib/viewers/office/OfficeLoader', () => {
it('should respect maxFileSize in viewerOptions', () => {
const viewerOptions = {
Office: {
excelOnlinePreviewerMaxSize: FIVE_MB + 1,
maxFileSize: FIVE_MB + 1,
},
};
const editedFakeFile = { ...fakeFile, size: FIVE_MB + 1 };
Expand Down

0 comments on commit 112a8ac

Please sign in to comment.