ServiceWorker in Webview apps

Ah, I was being lazy and avoiding implementing the class. I couldn’t find a fast and dirty method to initialize the post 3.7 python Handler. So, the simple version would be something like:

class Handler(http.server.SimpleHTTPRequestHandler):
    directory = "~/.config/orgname/appname/"

? And then copy the index (etc) there on install? I modified the example to keep the javascript in the application qml, since that works without issue and seemed safer.

1 Like