aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuna <imlvnaa@gmail.com>2023-09-06 17:10:04 +0000
committerVen <ven@noreply.codeberg.org>2023-09-06 17:10:04 +0000
commitafa47addd7e72ac5b22d9801b166e20601847433 (patch)
tree01bd033b6c8a0ecc5c8b29dec3e6f57e5b64bab9
parent8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4 (diff)
downloadVencord-afa47addd7e72ac5b22d9801b166e20601847433.tar.gz
Vencord-afa47addd7e72ac5b22d9801b166e20601847433.tar.bz2
Vencord-afa47addd7e72ac5b22d9801b166e20601847433.zip
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 <ven@noreply.codeberg.org> Reviewed-on: https://codeberg.org/Ven/cord/pulls/30 Co-authored-by: Luna <imlvnaa@gmail.com> Co-committed-by: Luna <imlvnaa@gmail.com>
-rw-r--r--src/plugins/usrbg/index.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/usrbg/index.tsx b/src/plugins/usrbg/index.tsx
index 0121d10..3e8c122 100644
--- a/src/plugins/usrbg/index.tsx
+++ b/src/plugins/usrbg/index.tsx
@@ -80,6 +80,9 @@ export default definePlugin({
}
],
+
+ data,
+
settingsAboutComponent: () => {
return (
<Link href="https://github.com/AutumnVN/usrbg#how-to-request-your-own-usrbg-banner">CLICK HERE TO GET YOUR OWN BANNER</Link>
@@ -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;
+ }
}
});