Skip to content

Commit 887a302

Browse files
committed
add: 尝试向下兼容至 3.10.7
1 parent 5a29842 commit 887a302

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.11
1+
3.0.12

core/dashboard.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ async def _(request: web.Request):
125125

126126
@route.get("/assets/js/config.js")
127127
async def _(request: web.Request):
128-
content = f'window.__CONFIG__ = {json.dumps({
128+
dashboard_config = json.dumps({
129129
"version": config.VERSION,
130130
"support": {
131131
"websocket": True,
132132
"polling": True
133133
},
134-
})}'
134+
})
135+
content = f'window.__CONFIG__ = {dashboard_config}'
135136
return web.Response(
136137
body=content,
137138
content_type="application/javascript"

0 commit comments

Comments
 (0)