Skip to content

Instantly share code, notes, and snippets.

@suuuzi
Last active January 24, 2018 06:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suuuzi/94395728e2d6982ac689a4408d08b21f to your computer and use it in GitHub Desktop.
Save suuuzi/94395728e2d6982ac689a4408d08b21f to your computer and use it in GitHub Desktop.
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');
});
@voxsar
Copy link

voxsar commented Aug 2, 2016

what does it do?

@suuuzi
Copy link
Author

suuuzi commented Aug 2, 2016

check if the browser is incognito mode or not

@subversivo58
Copy link

Great! Very thanks, this work fine 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment