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>
This commit is contained in:
Luna 2023-09-06 17:10:04 +00:00 committed by Ven
parent 8ecee3d09f
commit afa47addd7

View file

@ -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;
}
}
});