Untitled
2 years ago in Plain Text
(function() {
const agent = typeof navigator !== 'undefined' ? navigator.userAgent : '';
const REGEX_MATCH_CLIENT_TYPE = /BNC\/([0-9.]+) \(([a-zA-Z]+) ([0-9.]+)\)/;
if(REGEX_MATCH_CLIENT_TYPE.test(agent)){
return null
}
function getJSON(str) {
try {
return JSON.parse(str)
} catch (e) {
return {}
}