Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement service worker and add PWA manifest #372

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 22, 2024

  1. Implement service worker to serve site when offline

    This is the first step in making Numbat fully offline-capable and
    installable as a PWA. It's a bit brittle right now because it relies on
    static assets being manually tracked and added to the service worker
    lists.
    
    There's also a hole where the Google Fonts are not explicitly
    cached by the service worker; however the browser should be able to fall
    back to the system fonts or browser-level cache in this case. I tested
    this on my machine and it rendered properly when I was fully offline.
    
    I was not able to test the ECB exchange rate fetching due to the lack of
    CORS policy headers on the Numbat proxy, since I was running this at
    localhost.
    bsidhom committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    7e6323e View commit details
    Browse the repository at this point in the history
  2. Add PWA web manifest

    Addresses part of sharkdp#371.
    bsidhom committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    e3f46e9 View commit details
    Browse the repository at this point in the history