From 4311e9873ac656356e740ca5ae501f5a4599f88d Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Fri, 4 Dec 2020 00:20:46 -0800 Subject: [PATCH] drop my whitespace changes --- .../audits/installable-manifest.js | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/lighthouse-core/audits/installable-manifest.js b/lighthouse-core/audits/installable-manifest.js index d2b26f9cfbaa..fa1961de2a72 100644 --- a/lighthouse-core/audits/installable-manifest.js +++ b/lighthouse-core/audits/installable-manifest.js @@ -30,8 +30,9 @@ const UIStrings = { /** * @description TODO * @example {platform-not-supported-on-android} errorId - */ + */ noErrorId: `Installability error id '{errorId}'`, + /** Error message explaining that the page is not loaded in the frame. */ 'not-in-main-frame': 'Page is not loaded in the main frame', /** Error message explaining that the page is served from a secure origin. */ 'not-from-secure-origin': 'Page is not served from a secure origin', @@ -45,25 +46,25 @@ const UIStrings = { 'manifest-display-not-supported': `Manifest 'display' property must be one of 'standalone', 'fullscreen', or 'minimal-ui'`, /** Error message explaining that the manifest could not be fetched, might be empty, or could not be parsed. */ 'manifest-empty': `Manifest could not be fetched, is empty, or could not be parsed`, - /** Error message explaining that no matching service worker was detected, + /** Error message explaining that no matching service worker was detected, * and provides a suggestion to reload the page or check whether the scope of the service worker * for the current page encloses the scope and start URL from the manifest. */ - 'no-matching-service-worker': `No matching service worker detected. You may need to reload the page, - or check that the scope of the service worker for the current page + 'no-matching-service-worker': `No matching service worker detected. You may need to reload the page, + or check that the scope of the service worker for the current page encloses the scope and start URL from the manifest.`, /** * @description Error message explaining that the manifest does not contain a suitable icon. * @example {192} value0 - */ - 'manifest-missing-suitable-icon': `Manifest does not contain a suitable icon - PNG, - SVG or WebP format of at least {value0}\xa0px - is required, the sizes attribute must be set, and the purpose attribute, + */ + 'manifest-missing-suitable-icon': `Manifest does not contain a suitable icon - PNG, + SVG or WebP format of at least {value0}\xa0px + is required, the sizes attribute must be set, and the purpose attribute, if set, must include "any" or "maskable".`, /** * @description Error message explaining that the manifest does not supply an icon of the correct format. * @example {192} value0 - */ + */ 'no-acceptable-icon': `No supplied icon is at least {value0}\xa0px square in PNG, SVG or WebP format`, /** Error message explaining that the downloaded icon was empty or corrupt. */ @@ -89,13 +90,13 @@ const UIStrings = { 'no-url-for-service-worker': `Could not check service worker without a 'start_url' field in the manifest`, /**Error message explaining that the manifest specifies prefer_related_applications: true. */ 'prefer-related-applications': `Manifest specifies prefer_related_applications: true`, - /** Error message explaining that prefer_related_applications is only supported on Chrome Beta and Stable channe + /** Error message explaining that prefer_related_applications is only supported on Chrome Beta and Stable channe on Android. */ - 'prefer-related-applications-only-beta-stable': `prefer_related_applications is only supported on Chrome Beta and Stable channe + 'prefer-related-applications-only-beta-stable': `prefer_related_applications is only supported on Chrome Beta and Stable channe on Android.`, - /** Error message explaining that the manifest contains 'display_override' field, and the first supported display + /** Error message explaining that the manifest contains 'display_override' field, and the first supported display mode must be one of 'standalone', 'fulcreen', or 'minimal-ui. */ - 'manifest-display-override-not-supported': `Manifest contains 'display_override' field, and the first supported display + 'manifest-display-override-not-supported': `Manifest contains 'display_override' field, and the first supported display mode must be one of 'standalone', 'fulcreen', or 'minimal-ui`, /** Error message explaining that the web manifest's URL changed while the manifest was being downloaded by the browser. */ 'manifest-location-changed': `Manifest URL changed while the manifest was being fetched.`,