Function makePWARoute

  • Generates a Progressive Web App (PWA) route string by prefixing the given route with "pwa:".

    Parameters

    • route: string

      The route string to be prefixed.

    Returns string

    The PWA route string.

    const pwaRoute = makePWARoute('home');
    console.log(pwaRoute); // Output: 'pwa:home'