Skip to content

Commit fcc1b13

Browse files
committed
fix(HaRP-NC32): corrected handling of refreshing page by frontend
Signed-off-by: bigcat88 <[email protected]>
1 parent 03b4590 commit fcc1b13

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ex_app/lib/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,9 @@ def start_visionatrix() -> None:
375375
if os.environ.get("DISABLE_WORKER") != "1":
376376
# Run server in background and redirect output to server.log
377377
server_log = open("server.log", "wb")
378+
ui_path = "--ui=visionatrix/client_harp" if HARP_ENABLED else "--ui"
378379
subprocess.Popen(
379-
[visionatrix_python, "-m", "visionatrix", "run", "--mode=SERVER", "--ui"],
380+
[visionatrix_python, "-m", "visionatrix", "run", "--mode=SERVER", ui_path],
380381
stdout=server_log,
381382
stderr=subprocess.STDOUT,
382383
)

ex_app/src/views/IframeView.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export default {
125125
iframeSrcUrl += '/'
126126
}
127127
128+
if (process.env.HARP_ENABLED) {
129+
iframeSrcUrl = iframeSrcUrl.replace('/index.php', '')
130+
}
131+
128132
return iframeSrcUrl
129133
},
130134
handleIframeRouteChange(route) {

0 commit comments

Comments
 (0)