Fix settings & updater for Canary
This commit is contained in:
parent
e7e298d2e7
commit
5216bcca1e
|
@ -57,7 +57,7 @@ export default definePlugin({
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "Messages.ACTIVITY_SETTINGS",
|
find: ".SEARCH_NO_RESULTS&&0===",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=section:(.{0,50})\.DIVIDER\}\))([,;])(?=.{0,200}(\i)\.push.{0,100}label:(\i)\.header)/,
|
match: /(?<=section:(.{0,50})\.DIVIDER\}\))([,;])(?=.{0,200}(\i)\.push.{0,100}label:(\i)\.header)/,
|
||||||
|
@ -148,13 +148,17 @@ export default definePlugin({
|
||||||
|
|
||||||
if (!header) return;
|
if (!header) return;
|
||||||
|
|
||||||
const names = {
|
try {
|
||||||
top: i18n.Messages.USER_SETTINGS,
|
const names = {
|
||||||
aboveNitro: i18n.Messages.BILLING_SETTINGS,
|
top: i18n.Messages.USER_SETTINGS,
|
||||||
belowNitro: i18n.Messages.APP_SETTINGS,
|
aboveNitro: i18n.Messages.BILLING_SETTINGS,
|
||||||
aboveActivity: i18n.Messages.ACTIVITY_SETTINGS
|
belowNitro: i18n.Messages.APP_SETTINGS,
|
||||||
};
|
aboveActivity: i18n.Messages.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