Update typescript-eslint monorepo to v8 (major) (#2523)
* Update typescript-eslint monorepo to v8 * es lint fixes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timo <toger5@hotmail.de>
This commit is contained in:
@@ -505,7 +505,9 @@ function tryInitStorage(): Promise<void> {
|
||||
let indexedDB;
|
||||
try {
|
||||
indexedDB = window.indexedDB;
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.warn("Could not get indexDB from window.", e);
|
||||
}
|
||||
|
||||
if (indexedDB) {
|
||||
global.mx_rage_store = new IndexedDBLogStore(
|
||||
|
||||
@@ -30,7 +30,10 @@ export class Setting<T> {
|
||||
try {
|
||||
initialValue = JSON.parse(storedValue);
|
||||
} catch (e) {
|
||||
logger.warn(`Invalid value stored for setting ${key}: ${storedValue}`);
|
||||
logger.warn(
|
||||
`Invalid value stored for setting ${key}: ${storedValue}.`,
|
||||
e,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,9 @@ export function useSubmitRageshake(): {
|
||||
try {
|
||||
// MDN claims broad support across browsers
|
||||
touchInput = String(window.matchMedia("(pointer: coarse)").matches);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.warn("Could not get coarse pointer for rageshake submit.", e);
|
||||
}
|
||||
|
||||
let description = opts.rageshakeRequestId
|
||||
? `Rageshake ${opts.rageshakeRequestId}`
|
||||
@@ -216,7 +218,9 @@ export function useSubmitRageshake(): {
|
||||
"storageManager_persisted",
|
||||
String(await navigator.storage.persisted()),
|
||||
);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.warn("coulr not get navigator peristed storage", e);
|
||||
}
|
||||
} else if (document.hasStorageAccess) {
|
||||
// Safari
|
||||
try {
|
||||
@@ -224,7 +228,9 @@ export function useSubmitRageshake(): {
|
||||
"storageManager_persisted",
|
||||
String(await document.hasStorageAccess()),
|
||||
);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.warn("could not get storage access", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (navigator.storage && navigator.storage.estimate) {
|
||||
@@ -244,7 +250,9 @@ export function useSubmitRageshake(): {
|
||||
);
|
||||
});
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.warn("could not obatain storage estimate", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (opts.sendLogs) {
|
||||
|
||||
Reference in New Issue
Block a user