this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix cloak mode issues on Safari

+11
+11
src/utils/enhance-content.js
··· 290 290 } 291 291 } 292 292 293 + // FIX CLOAK MODE FOR SAFARI 294 + // Workaround for Safari so that `text-decoration-thickness` works 295 + // Wrap child text nodes in spans 296 + for (const node of dom.childNodes) { 297 + if (node.nodeType === Node.TEXT_NODE) { 298 + const span = document.createElement('span'); 299 + span.textContent = node.textContent; 300 + dom.replaceChild(span, node); 301 + } 302 + } 303 + 293 304 if (postEnhanceDOM) { 294 305 queueMicrotask(() => postEnhanceDOM(dom)); 295 306 // postEnhanceDOM(dom); // mutate dom