Checks if the given route is a PWA (Progressive Web App) route.
This function determines if the provided route string contains the 'pwa:' prefix, indicating that it is a route related to a Progressive Web App.
The route string to check.
true if the route contains 'pwa:', otherwise false.
true
false
const route1 = 'pwa:/home';const route2 = '/about';console.log(isPWARoute(route1)); // trueconsole.log(isPWARoute(route2)); // false Copy
const route1 = 'pwa:/home';const route2 = '/about';console.log(isPWARoute(route1)); // trueconsole.log(isPWARoute(route2)); // false
Checks if the given route is a PWA (Progressive Web App) route.
This function determines if the provided route string contains the 'pwa:' prefix, indicating that it is a route related to a Progressive Web App.