mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
browser launch
This commit is contained in:
parent
e07de2ea92
commit
70ba616ecc
2 changed files with 3 additions and 1 deletions
|
@ -11390,6 +11390,8 @@ initializeInstructUIFunctionality();
|
||||||
pick_default_horde_models();
|
pick_default_horde_models();
|
||||||
indexeddb_save("savedusermod","");
|
indexeddb_save("savedusermod","");
|
||||||
indexeddb_save("savedcustomcss", "");
|
indexeddb_save("savedcustomcss", "");
|
||||||
|
let styleElement = document.getElementById('custom_css');
|
||||||
|
styleElement.innerHTML = "";
|
||||||
},null);
|
},null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1847,7 +1847,7 @@ def LaunchWebbrowser(target_url, failedmsg):
|
||||||
try:
|
try:
|
||||||
if os.name == "posix" and "DISPLAY" in os.environ: # UNIX-like systems
|
if os.name == "posix" and "DISPLAY" in os.environ: # UNIX-like systems
|
||||||
import subprocess
|
import subprocess
|
||||||
result = subprocess.run(["xdg-open", target_url], check=True)
|
result = subprocess.run(["/usr/bin/env", "xdg-open", target_url], check=True)
|
||||||
if result.returncode == 0:
|
if result.returncode == 0:
|
||||||
return # fallback successful
|
return # fallback successful
|
||||||
raise RuntimeError("no xdg-open")
|
raise RuntimeError("no xdg-open")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue