Fixed so toast with install app doesn't show up on mobile

This commit is contained in:
Kasper Rynning-Tønnesen
2015-08-10 16:15:40 +02:00
parent bba0470369
commit d09579341d
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ $(document).ready(function (){
var _isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
setTimeout(function(){
if (_isChrome && !document.getElementById('extension-is-installed'))
if (_isChrome && !document.getElementById('extension-is-installed') && !window.mobilecheck())
Materialize.toast("<a href='#' onclick='installRemote();' style='pointer-events:all;color:white;'>Install the extension!</a>", 100000);
}, 5);
window.installRemote = installRemote;