mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
fix bad url root for iframe
This commit is contained in:
+6
-5
@@ -359,11 +359,12 @@ def serve_layout():
|
||||
)
|
||||
]),
|
||||
dbc.Tab(label="Map", tab_id="map", children=[maps]),
|
||||
dbc.Tab(label="Control", tab_id="control", children=html.Iframe(src="/control?header=false",
|
||||
style={"position": "absolute",
|
||||
"height": "100%",
|
||||
"width": "100%",
|
||||
"border": "none"}))
|
||||
dbc.Tab(label="Control", tab_id="control", children=html.Iframe(
|
||||
src=request.url_root + "control?header=false",
|
||||
style={"position": "absolute",
|
||||
"height": "100%",
|
||||
"width": "100%",
|
||||
"border": "none"}))
|
||||
],
|
||||
id="tabs",
|
||||
active_tab="summary",
|
||||
|
||||
Reference in New Issue
Block a user