From 73354973a37a03fffa5acacd49c9251008efbba8 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 29 Jun 2023 16:06:21 +0200 Subject: OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections --- src/webpack/common/utils.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/webpack/common') diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 629d052..40a45da 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -77,6 +77,17 @@ export const Toasts = { } }; +/** + * Show a simple toast. If you need more options, use Toasts.show manually + */ +export function showToast(message: string, type = ToastType.MESSAGE) { + Toasts.show({ + id: Toasts.genId(), + message, + type + }); +} + export const UserUtils = { fetchUser: findByCodeLazy(".USER(", "getUser") as (id: string) => Promise, }; -- cgit