How to abort threejs if microsoft edge borwser

Hi to all, in a web site i need to abort threejs module and show other content for microsoft edge borwser users. I detect the browser with:

var userAgent = navigator.userAgent;
var browserName;
if (userAgent.match(/edg/i)) {
browserName = “Edge”;

if (browserName == “Edge”) {

show a video on canvas


import and execute three.js on canvas


Thank for any help…