Skip to content

Commit

Permalink
updated browser detection for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvdwiel committed Oct 17, 2018
1 parent 67ea692 commit f493d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadome/presentation/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1 class="title" style="color: #00AFDC;">Welcome to MetaDome</h1>
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;

// Firefox 1.0+
var isFirefox = typeof InstallTrigger !== 'undefined';
var isFirefox = /firefox/i.test(navigator.userAgent);

// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification);
Expand All @@ -79,7 +79,7 @@ <h1 class="title" style="color: #00AFDC;">Welcome to MetaDome</h1>
var isBlink = (isChrome || isOpera) && !!window.CSS;

// Warn users if they are using something other than Chrome or Firefox
if (!(isChrome || isFireFox)){
if (!(isChrome || isFirefox)){
$("#IE_warning_overlay").addClass("is-active");
}
</script>
Expand Down

0 comments on commit f493d09

Please sign in to comment.