Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(office): Preview PDF rep if using internet explorer #1416

Merged
merged 5 commits into from
Aug 10, 2021

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Aug 4, 2021

TODO

  • unit tests
  • cross browser testing

Screen Shot 2021-08-04 at 4 35 11 PM

@ConradJChan ConradJChan requested a review from a team as a code owner August 4, 2021 23:39
@ConradJChan ConradJChan force-pushed the ie11-office-deprecation branch from 4c5ffbb to 49f9697 Compare August 4, 2021 23:41
src/lib/Preview.js Outdated Show resolved Hide resolved
src/lib/Preview.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/DocLoader.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/OfficeExcelViewer.js Outdated Show resolved Hide resolved
@ConradJChan ConradJChan force-pushed the ie11-office-deprecation branch from 6b3b6a1 to 48a02ed Compare August 5, 2021 04:16
@@ -377,6 +379,14 @@ class DocBaseViewer extends BaseViewer {
this.showPreload();

const template = this.options.representation.content.url_template;
const { extension } = this.options.file;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this.options.file always defined as an object? Should we move this logic to DocumentViewer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it is always passed into the viewer options:

file: this.file,

src/lib/viewers/doc/DocBaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/DocBaseViewer.js Outdated Show resolved Hide resolved
@ConradJChan ConradJChan force-pushed the ie11-office-deprecation branch from acafa27 to 6b03bec Compare August 10, 2021 17:41
@mergify mergify bot merged commit c104cd2 into box:master Aug 10, 2021
@ConradJChan ConradJChan deleted the ie11-office-deprecation branch August 10, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants