mirror of
https://github.com/mue/mue.git
synced 2026-07-10 22:14:39 +02:00
chore: improve background back btn, update dependencies
This commit is contained in:
@@ -18,7 +18,8 @@ export const REPORT_ITEM =
|
||||
export const BUG_REPORT =
|
||||
'https://github.com/mue/mue/issues/new?assignees=&labels=issue+report&template=bug-report.md&title=%5BBug%5D+';
|
||||
export const DONATE_LINK = 'https://muetab.com/donate';
|
||||
export const SENTRY_DSN = 'https://430352fd4b174d688ebd82fc85c22c58@o1217438.ingest.sentry.io/6359480';
|
||||
export const SENTRY_DSN =
|
||||
'https://430352fd4b174d688ebd82fc85c22c58@o1217438.ingest.sentry.io/6359480';
|
||||
export const KNOWLEDGEBASE = 'https://knowledgebase.muetab.com';
|
||||
|
||||
// Mue Info
|
||||
|
||||
@@ -103,14 +103,16 @@ export function uninstall(type, name) {
|
||||
(content) => content.name === name,
|
||||
);
|
||||
installedContents.forEach((item, index) => {
|
||||
const exists = packContents.quotes.find((content) => content.quote === item.quote || content.author === item.author);
|
||||
const exists = packContents.quotes.find(
|
||||
(content) => content.quote === item.quote || content.author === item.author,
|
||||
);
|
||||
if (exists !== undefined) {
|
||||
installedContents.splice(index, 1);
|
||||
}
|
||||
});
|
||||
localStorage.setItem('quote_packs', JSON.stringify(installedContents));
|
||||
localStorage.removeItem('quoteAPI');
|
||||
if (installedContents.length === 0) {
|
||||
if (installedContents.length === 0) {
|
||||
localStorage.setItem('quoteType', localStorage.getItem('oldQuoteType') || 'api');
|
||||
localStorage.removeItem('oldQuoteType');
|
||||
localStorage.removeItem('quote_packs');
|
||||
|
||||
Reference in New Issue
Block a user