避免windows下注册表有问题时白屏

This commit is contained in:
zhbaor 2024-11-03 19:08:35 +08:00
parent 1bcc311a93
commit 3269bf0adf

View file

@ -1,9 +1,14 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import json import json
import mimetypes
import webview import webview
mimetypes.add_type("text/html", ".html")
mimetypes.add_type("text/css", ".css")
mimetypes.add_type("application/javascript", ".js")
class Api: class Api:
def __init__(self): def __init__(self):