libertysoft3 / saidit

The reddit open source fork powering SaidIt
https://saidit.net
Other
226 stars 40 forks source link

Disable frontend javascript error reporting #90

Open libertysoft3 opened 4 years ago

libertysoft3 commented 4 years ago

E.g. this ends up in server side logs:

[web frontend] error: Client Error: "TypeError: can't redefine non-configurable property "userAgent"" thrown at L1:291 in 
https://saidit.net/s/ice_poseidon2 Message: "TypeError: can't redefine non-configurable property "userAgent"" | U: 50837 FP: 
https://saidit.net/s/ice_poseidon2 UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

[web frontend] error: Client Error: "SyntaxError: Unexpected token 'else'" thrown at L1:219 in 
https://saidit.net/s/Ice_Poseidon2/comments/5coh/dope_district_is_making_captain_pay_about_3x_more/ Message: 
"Uncaught SyntaxError: Unexpected token 'else'" | U: - FP: 
https://saidit.net/s/Ice_Poseidon2/comments/5coh/dope_district_is_making_captain_pay_about_3x_more/ UA: Mozilla/5.0 
(Linux; Android 7.0; LG-H871 Build/NRD90U; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 
Chrome/59.0.3071.125 Mobile Safari/537.36

Removing this logging would increase privacy and reduce the weight of javascript on page loads. Js rarely changes on SaidIt anyway.