Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

[Hold] Fixes #5172 - Hide edit tool icon in Microsoft Edge #5175

Merged
Merged
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
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