mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
re-add try catch
This commit is contained in:
parent
f8bdd8ef2a
commit
4cf5b58f9b
1 changed files with 12 additions and 7 deletions
|
@ -149,13 +149,18 @@ export default definePlugin({
|
||||||
|
|
||||||
if (!header) return;
|
if (!header) return;
|
||||||
|
|
||||||
const names = {
|
try {
|
||||||
top: getIntlMessage("USER_SETTINGS"),
|
const names = {
|
||||||
aboveNitro: getIntlMessage("BILLING_SETTINGS"),
|
top: getIntlMessage("USER_SETTINGS"),
|
||||||
belowNitro: getIntlMessage("APP_SETTINGS"),
|
aboveNitro: getIntlMessage("BILLING_SETTINGS"),
|
||||||
aboveActivity: getIntlMessage("ACTIVITY_SETTINGS")
|
belowNitro: getIntlMessage("APP_SETTINGS"),
|
||||||
};
|
aboveActivity: getIntlMessage("ACTIVITY_SETTINGS")
|
||||||
return header === names[settingsLocation];
|
};
|
||||||
|
|
||||||
|
return header === names[settingsLocation];
|
||||||
|
} catch {
|
||||||
|
return firstChild === "PREMIUM";
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
patchedSettings: new WeakSet(),
|
patchedSettings: new WeakSet(),
|
||||||
|
|
Loading…
Reference in a new issue