mirror of
https://github.com/andrei0x309/Brave-Detection-Blocker-Chrome-Extension.git
synced 2024-11-22 08:03:49 +00:00
fix: sendBeacon
This commit is contained in:
parent
10f762bb1f
commit
34bfafd046
@ -9,7 +9,6 @@ const primitivesNav = {
|
|||||||
appVersion: window.navigator.appVersion,
|
appVersion: window.navigator.appVersion,
|
||||||
platform: window.navigator.platform,
|
platform: window.navigator.platform,
|
||||||
vendor: window.navigator.vendor,
|
vendor: window.navigator.vendor,
|
||||||
userLanguage: window.navigator.userLanguage,
|
|
||||||
language: window.navigator.language,
|
language: window.navigator.language,
|
||||||
cookieEnabled: true,
|
cookieEnabled: true,
|
||||||
appCodeName: window.navigator.appCodeName,
|
appCodeName: window.navigator.appCodeName,
|
||||||
@ -17,13 +16,14 @@ const primitivesNav = {
|
|||||||
product: window.navigator.product,
|
product: window.navigator.product,
|
||||||
geolocation: window.navigator.geolocation,
|
geolocation: window.navigator.geolocation,
|
||||||
onLine: window.navigator.onLine,
|
onLine: window.navigator.onLine,
|
||||||
|
sendBeacon: window.navigator.sendBeacon.bind(window.navigator),
|
||||||
};
|
};
|
||||||
|
|
||||||
for (let prop in window.navigator) {
|
for (let prop in window.navigator) {
|
||||||
if (prop === 'brave') {
|
if (prop === 'brave') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
newNav.prop = copyNavRef.prop;
|
newNav[prop] = copyNavRef[prop];
|
||||||
}
|
}
|
||||||
for (let prop in primitivesNav) {
|
for (let prop in primitivesNav) {
|
||||||
primitivesNav.hasOwnProperty(prop) &&
|
primitivesNav.hasOwnProperty(prop) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user