Skip to content

Commit

Permalink
Fixes mozilla-services#5172 - Hide edit tool icon in Microsoft Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
punamdahiya committed Nov 14, 2018
1 parent 2f31ed8 commit 74afa0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ class Body extends React.Component {
cancelDeleteHandler={this.cancelDeleteHandler.bind(this)}
staticLink={this.props.staticLink} key="delete-shot-button" />;

editButton = this.props.enableAnnotations && !this.props.isMobile ?
const isUserAgentEdge = this.props.userAgent && (/Edge\/\d+/i.test(this.props.userAgent));

editButton = this.props.enableAnnotations && !this.props.isMobile && !isUserAgentEdge ?
<div className="edit-shot-button" key="edit-shot-button">
<Localized id="shotPageEditButton" attrs={{title: true}}>
<button className="button transparent nav-button"
Expand Down

0 comments on commit 74afa0e

Please sign in to comment.