1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-04-01 22:23:42 +03:00

Disable workbox logging because it's too verbose

This commit is contained in:
Lim Chee Aun 2023-01-02 14:22:31 +08:00
parent 89cb909094
commit fee37f9880

View file

@ -3,6 +3,8 @@ import { ExpirationPlugin } from 'workbox-expiration';
import { RegExpRoute, registerRoute, Route } from 'workbox-routing'; import { RegExpRoute, registerRoute, Route } from 'workbox-routing';
import { CacheFirst, StaleWhileRevalidate } from 'workbox-strategies'; import { CacheFirst, StaleWhileRevalidate } from 'workbox-strategies';
self.__WB_DISABLE_DEV_LOGS = true;
const imageRoute = new Route( const imageRoute = new Route(
({ request, sameOrigin }) => { ({ request, sameOrigin }) => {
const isRemote = !sameOrigin; const isRemote = !sameOrigin;