Stupid gulp

This commit is contained in:
Kasper Rynning-Tønnesen
2015-08-04 22:19:36 +02:00
parent 382161b6da
commit 764812c9ab
4 changed files with 6 additions and 6 deletions

View File

@@ -24,10 +24,10 @@ $(document).ready(function (){
+ git_info[0].sha.substring(0,10) + "</a>: "
+ git_info[0].commit.message+"<br");
var chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
var installed = chrome.app.isInstalled;
var _isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
var _isRemoteInstalled = chrome.app.isInstalled;
if (chrome && !installed)
if (_isChrome && !_isRemoteInstalled)
Materialize.toast("<a href='#' onclick='installRemote();' style='pointer-events:all;color:white;'>Install the extension!</a>", 100000);
window.installRemote = installRemote;