-import { autoPlayGif } from '../../initial_state';
-import { putAccounts, putStatuses } from '../../storage/modifier';
+// import { autoPlayGif } from '../../initial_state';
+// import { putAccounts, putStatuses } from '../../storage/modifier';
import { normalizeAccount, normalizeStatus } from './normalizer';
export const ACCOUNT_IMPORT = 'ACCOUNT_IMPORT';
}
accounts.forEach(processAccount);
- putAccounts(normalAccounts, !autoPlayGif);
+ //putAccounts(normalAccounts, !autoPlayGif);
return importAccounts(normalAccounts);
}
}
statuses.forEach(processStatus);
- putStatuses(normalStatuses);
+ //putStatuses(normalStatuses);
dispatch(importFetchedAccounts(accounts));
dispatch(importStatuses(normalStatuses));
-import { freeStorage, storageFreeable } from '../storage/modifier';
+// import { freeStorage, storageFreeable } from '../storage/modifier';
import './web_push_notifications';
-function openSystemCache() {
- return caches.open('mastodon-system');
-}
+// function openSystemCache() {
+// return caches.open('mastodon-system');
+// }
function openWebCache() {
return caches.open('mastodon-web');
return fetch('/', { credentials: 'include', redirect: 'manual' });
}
-const firefox = navigator.userAgent.match(/Firefox\/(\d+)/);
-const invalidOnlyIfCached = firefox && firefox[1] < 60;
+// const firefox = navigator.userAgent.match(/Firefox\/(\d+)/);
+// const invalidOnlyIfCached = firefox && firefox[1] < 60;
// Cause a new version of a registered Service Worker to replace an existing one
// that is already installed, and replace the currently active worker on open pages.
return response;
}));
- } else if (storageFreeable && (ATTACHMENT_HOST ? url.host === ATTACHMENT_HOST : url.pathname.startsWith('/system/'))) {
+ } /* else if (storageFreeable && (ATTACHMENT_HOST ? url.host === ATTACHMENT_HOST : url.pathname.startsWith('/system/'))) {
event.respondWith(openSystemCache().then(cache => {
return cache.match(event.request.url).then(cached => {
if (cached === undefined) {
return cached;
});
}));
- }
+ } */
});