source: frontend/node_modules/workbox-strategies/utils/messages.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 728 bytes
RevLine 
[9af201e]1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8import { logger } from 'workbox-core/_private/logger.js';
9import { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';
10import '../_version.js';
11export const messages = {
12 strategyStart: (strategyName, request) => `Using ${strategyName} to respond to '${getFriendlyURL(request.url)}'`,
13 printFinalResponse: (response) => {
14 if (response) {
15 logger.groupCollapsed(`View the final response here.`);
16 logger.log(response || '[No response returned]');
17 logger.groupEnd();
18 }
19 },
20};
Note: See TracBrowser for help on using the repository browser.