From 74afa0e67374b15786578ad781afdbd6b1a2ec0e Mon Sep 17 00:00:00 2001 From: Punam Dahiya Date: Tue, 13 Nov 2018 19:20:17 -0800 Subject: [PATCH] Fixes #5172 - Hide edit tool icon in Microsoft Edge --- server/src/pages/shot/view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/pages/shot/view.js b/server/src/pages/shot/view.js index 28f34c73a5..75a5fcb614 100644 --- a/server/src/pages/shot/view.js +++ b/server/src/pages/shot/view.js @@ -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 ?