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

[Bug] Fix a bug in file-drop.js that causes error in server side render #896

Merged
merged 2 commits into from Jan 13, 2020

Conversation

heshan0131
Copy link
Contributor

  • import window in file-drop

Signed-off-by: Shan He heshan0131@gmail.com

Signed-off-by: Shan He <heshan0131@gmail.com>
Copy link
Collaborator

@jonsadka jonsadka left a comment

Choose a reason for hiding this comment

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

LGTM!

window.navigator.appVersion.indexOf('Trident/') > 0);
window && window.navigator &&
((window.navigator.userAgent || []).indexOf('MSIE') > -1 ||
(window.navigator.appVersion || []).indexOf('Trident/') > -1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

FY I've shifted to using .includes()

Signed-off-by: Shan He <heshan0131@gmail.com>
@heshan0131 heshan0131 merged commit a919aab into master Jan 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the file-uploader branch January 13, 2020 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants