mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
fixed a path bug in lite
This commit is contained in:
+2
-2
@@ -3933,10 +3933,10 @@ Current version: 138
|
||||
const twoslashes = /\/[^/]+\/[^/]*$/;
|
||||
if(window.location.protocol != 'file:' && pn!="" && pn!="/" && twoslashes.test(pn))
|
||||
{
|
||||
const segments = pathname.split('/').filter(segment => segment.length > 0);
|
||||
const segments = pn.split('/').filter(segment => segment.length > 0);
|
||||
for(let i=0;i<segments.length;++i)
|
||||
{
|
||||
if(!pathname.endsWith("/") && (i==segments.length-1))
|
||||
if(!pn.endsWith("/") && (i==segments.length-1))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user