From afa47addd7e72ac5b22d9801b166e20601847433 Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 6 Sep 2023 17:10:04 +0000 Subject: [PATCH] usrbg: export the data to allow other plugins to access (#30) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Co-authored-by: Ven Reviewed-on: https://codeberg.org/Ven/cord/pulls/30 Co-authored-by: Luna Co-committed-by: Luna --- src/plugins/usrbg/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/usrbg/index.tsx b/src/plugins/usrbg/index.tsx index 0121d10a8..3e8c12257 100644 --- a/src/plugins/usrbg/index.tsx +++ b/src/plugins/usrbg/index.tsx @@ -80,6 +80,9 @@ export default definePlugin({ } ], + + data, + settingsAboutComponent: () => { return ( CLICK HERE TO GET YOUR OWN BANNER @@ -116,7 +119,9 @@ export default definePlugin({ enableStyle(style); const res = await fetch(BASE_URL); - if (res.ok) + if (res.ok) { data = await res.json(); + this.data = data; + } } });