fix: Vencord_cloudSecret check (#2077)
finally got around to fixing it - `null` is never a valid return value,
it's `undefined` 🤦
This commit is contained in:
parent
5dee2e8549
commit
42307ccc0e
|
@ -44,7 +44,7 @@ async function syncSettings() {
|
||||||
// pre-check for local shared settings
|
// pre-check for local shared settings
|
||||||
if (
|
if (
|
||||||
Settings.cloud.authenticated &&
|
Settings.cloud.authenticated &&
|
||||||
await dsGet("Vencord_cloudSecret") === null // this has been enabled due to local settings share or some other bug
|
!await dsGet("Vencord_cloudSecret") // this has been enabled due to local settings share or some other bug
|
||||||
) {
|
) {
|
||||||
// show a notification letting them know and tell them how to fix it
|
// show a notification letting them know and tell them how to fix it
|
||||||
showNotification({
|
showNotification({
|
||||||
|
@ -145,4 +145,3 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}, { once: true });
|
}, { once: true });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue