From 9e6001d0e0d57ce6fd05651a6e0b11f7b369f9e9 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sun, 3 Nov 2024 19:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8Dwindows=E4=B8=8B=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=A1=A8=E6=9C=89=E9=97=AE=E9=A2=98=E6=97=B6=E7=99=BD?= =?UTF-8?q?=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 6b4f6c9..bea2394 100644 --- a/main.py +++ b/main.py @@ -1,10 +1,15 @@ import json +import mimetypes from pathlib import Path from shutil import rmtree from subprocess import PIPE, STDOUT, Popen import webview +mimetypes.add_type("text/html", ".html") +mimetypes.add_type("text/css", ".css") +mimetypes.add_type("application/javascript", ".js") + version = "2024-10-10" config = {