mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
[Glitch] Resolve typescript eslint warning
Port c578a0cb74 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export function loadPolyfills() {
|
|||||||
return Promise.all([
|
return Promise.all([
|
||||||
loadIntlPolyfills(),
|
loadIntlPolyfills(),
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- those properties might not exist in old browsers, even if they are always here in types
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- those properties might not exist in old browsers, even if they are always here in types
|
||||||
needsExtraPolyfills && importExtraPolyfills(),
|
needsExtraPolyfills ? importExtraPolyfills() : Promise.resolve(),
|
||||||
loadEmojiPolyfills(),
|
loadEmojiPolyfills(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const popModal = (
|
|||||||
modalType === state.get('stack').get(0)?.get('modalType')
|
modalType === state.get('stack').get(0)?.get('modalType')
|
||||||
) {
|
) {
|
||||||
return state
|
return state
|
||||||
.set('ignoreFocus', !!ignoreFocus)
|
.set('ignoreFocus', ignoreFocus)
|
||||||
.update('stack', (stack) => stack.shift());
|
.update('stack', (stack) => stack.shift());
|
||||||
} else {
|
} else {
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Reference in New Issue
Block a user