From 628490ac2d7755d061f00773cb8fb3d7449bee6d Mon Sep 17 00:00:00 2001 From: Michael Harding Date: Mon, 25 Feb 2019 11:10:19 -0500 Subject: [PATCH] Hide JS errors in IE --- doc/user/static/image.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/user/static/image.js b/doc/user/static/image.js index 9fc0456ec..ab70803eb 100644 --- a/doc/user/static/image.js +++ b/doc/user/static/image.js @@ -9,4 +9,9 @@ $(document).ready(function() { $(".back-button") .html("Go Back") .click(function(_) { window.history.back()}); + + if(navigator.userAgent.indexOf("Trident") > -1) { + console.log(navigator.userAgent); + $(".search-icon").css("display", "none"); + } });