I have been messing around with the Brave browser (https://www.brave.com/), an I cannot figure out how to determine how if a user is using Brave. I used a simp
There is a way to check if the user is using brave without any api calls. I created the below function that returns false or True if its Brave
function isBrave() {
if (window.navigator.brave != undefined) {
if (window.navigator.brave.isBrave.name == "isBrave") {
return true;
} else {
return false;
}
} else {
return false;
}
}
document.getElementById("ans").innerHTML = isBrave();
Is this Brave?