3 ms·
A bunch of different ways probably. This method is stolen from SO (works for Chrome): const detect = () => { var fs = window.RequestFileSystem || window.we
by catfood 7y ago
A bunch of different ways probably. This method is stolen from SO (works for Chrome):
const detect = () => {
var fs = window.RequestFileSystem || window.webkitRequestFileSystem;
if (!fs) {
console.log("FS check failed..");
return;
}
fs(window.TEMPORARY, 100, function (fs) {}, function (err) {
console.log("Incognito");
});
};
- tyingq 7y agochrome://flags/, as of Chrome 74, has a setting "Filesystem API in Incognito". Enable that and this way of detecting incognito stops working.