isPrivateMode().then(function (isPrivate) { console.log('Browsing in private mode? ', isPrivate); });