Uploaded image for project: 'OpenMRS 3.x Frontend'
  1. OpenMRS 3.x Frontend
  2. O3-1073

Registration should work if service worker is unavailable

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress
    • Must
    • Resolution: Unresolved
    • None
    • None
    • Offline, Registration
    • Undetermined

    Description

      Currently, if you attempt to open the registration page in a browser that doesn't support the service worker API or where the service worker API is disabled (e.g., in private mode) the registration page will not load. In the console, I see this exception:

      Uncaught DOMException: The operation is insecure. openmrs.js:2
          sa workbox-window.prod.es5.mjs:1
          sa workbox-window.prod.es5.mjs:1
          bn workbox-window.prod.es5.mjs:1
          sa workbox-window.prod.es5.mjs:1
      

      We've also seen this error reported:

      Uncaught (in promise) Error: Registering the Service Worker is not possible due to missing browser capabilities.    
        ui service-worker.ts:16    
        Oe run.ts:160    
        fe run.ts:7    
        fe run.ts:3    
        Oe run.ts:159     
        Oe run.ts:262    
        initializeSpa index.ts:14    
        initializeSpa index.ts:24    
        <anonymous> styles.css:3
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ibacher Ian Bacher
                Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated: