Created
July 18, 2011 19:32
-
-
Save andregoncalves/1090424 to your computer and use it in GitHub Desktop.
Check if Chrome Web Store App is installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (navigator && navigator.userAgent && navigator.userAgent.indexOf('Chrome') != -1) { | |
var isInstalled = window.chrome && window.chrome.app && window.chrome.app.isInstalled; | |
var isCancelled = document.cookie.indexOf(cookie + "=true") >= 0; | |
(...) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment