Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cf07f54

Browse files
committed
Gracefully handle missing platform
1 parent 7129ba6 commit cf07f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ const getAbsoluteUrl = (() => {
658658
* @param {Element[]} ignoredNodes: a list of nodes to not recurse into.
659659
*/
660660
export function tooltipifyLinks(rootNodes: ArrayLike<Element>, ignoredNodes: Element[]) {
661-
if (!PlatformPeg.get().needsUrlTooltips()) {
661+
if (!PlatformPeg.get()?.needsUrlTooltips()) {
662662
return;
663663
}
664664

0 commit comments

Comments
 (0)