MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / safeParse

Function safeParse

scripts/fb_blockSeenAndTyping.js:40–49  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

38}
39
40function safeParse(e) {
41 if (!e) return null;
42 try {
43 var t = JSON.parse(e);
44 if (t) return t;
45 } catch (e) {
46 return debug, null;
47 }
48 return null;
49}
50
51export function fbBlockFeatures({
52 block_seen_chat = true,

Callers 1

fbBlockFeaturesFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected