mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
chore: tighten ESLint config (#6931)
* chore: tighten ESLint config * more refactor * refactor push * fix
This commit is contained in:
parent
f70ddf7e69
commit
cc0bceab9c
54 changed files with 177 additions and 193 deletions
|
@ -79,7 +79,7 @@ function isStandaloneDisplayMode() {
|
|||
const OfflineModeActivationStrategiesImplementations = {
|
||||
always: () => true,
|
||||
mobile: () => window.innerWidth <= MAX_MOBILE_WIDTH,
|
||||
saveData: () => !!(navigator.connection && navigator.connection.saveData),
|
||||
saveData: () => !!navigator.connection?.saveData,
|
||||
appInstalled: async () => {
|
||||
const installedEventFired = await isAppInstalledEventFired();
|
||||
const installedRelatedApps = await isAppInstalledRelatedApps();
|
||||
|
|
|
@ -137,7 +137,7 @@ function getPossibleURLs(url) {
|
|||
});
|
||||
}
|
||||
|
||||
const type = event.data && event.data.type;
|
||||
const type = event.data?.type;
|
||||
|
||||
if (type === 'SKIP_WAITING') {
|
||||
self.skipWaiting();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue