Last active
January 24, 2018 06:46
-
-
Save suuuzi/94395728e2d6982ac689a4408d08b21f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var fs = window.RequestFileSystem || window.webkitRequestFileSystem; | |
if (!fs) { | |
result.textContent = "check failed?"; | |
return; | |
} | |
fs(window.TEMPORARY, 100, function(fs) { | |
console.log('not in incognito mode'); | |
}, function(err) { | |
console.log('is in incognito mode'); | |
}); |
check if the browser is incognito mode or not
Great! Very thanks, this work fine 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what does it do?