From 84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 24 Oct 2022 19:14:56 -0400 Subject: preview 10/21/2022 fixes (#234) * initial fixes: everything working except toasts and patch notes * tabshook changes, disable toaster for now * prettier * oops * implement custom toaster because I am tired of Valve's shit also fix QAM not injecting sometimes * remove extra logging * add findSP, fix patch notes, fix vscode screwup * fix patch notes * show error when plugin frontends fail to load * add get_tab_lambda * add css and has_element helpers to Tab * small modals fixup * Don't forceUpdate QuickAccess on stable * add routes prop used to get tabs component * add more dev utils to DFL global --- frontend/src/components/Markdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/Markdown.tsx') diff --git a/frontend/src/components/Markdown.tsx b/frontend/src/components/Markdown.tsx index 278e49cd..045b90a2 100644 --- a/frontend/src/components/Markdown.tsx +++ b/frontend/src/components/Markdown.tsx @@ -1,4 +1,4 @@ -import { Focusable } from 'decky-frontend-lib'; +import { Focusable, Router } from 'decky-frontend-lib'; import { FunctionComponent, useRef } from 'react'; import ReactMarkdown, { Options as ReactMarkdownOptions } from 'react-markdown'; import remarkGfm from 'remark-gfm'; @@ -21,8 +21,8 @@ const Markdown: FunctionComponent = (props) => { {}} onOKButton={() => { - aRef?.current?.click(); props.onDismiss?.(); + Router.NavigateToExternalWeb(aRef.current!.href); }} style={{ display: 'inline' }} > -- cgit v1.2.3