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

[FIX] outlook: show a warning message for Internet Explorer users #27

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions outlook/src/taskpane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ let isOfficeInitialized = false;
const title = 'Odoo for Outlook';

const render = (Component) => {
if (navigator.userAgent.indexOf('Trident') >= 0 || navigator.userAgent.indexOf('Edge') >= 0) {
// Use the addin with Internet Explorer
ReactDOM.render(
<AppContainer>
<div className="warning-message">
This addin is unfortunately not compatible with Internet Explorer. Please try again with another
browser.
</div>
</AppContainer>,
document.getElementById('container'),
);
return;
}

ReactDOM.render(
<AppContainer>
<Component
Expand Down
4 changes: 4 additions & 0 deletions outlook/src/taskpane/taskpane.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
border-bottom: 1px #d6d5d5 solid;
}

.warning-message {
padding: 20px;
}

.tile-regular-space {
height: 30px;
}
Expand Down