mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
location.pathname not work for file:// urls
This commit is contained in:
parent
f82c34ba62
commit
ddcf396b11
2 changed files with 5 additions and 13 deletions
|
@ -171,9 +171,10 @@
|
|||
$(dictinput).on('change', accept);
|
||||
|
||||
{
|
||||
let path = location.pathname;
|
||||
let iSlash = path.lastIndexOf('/');
|
||||
let filenames=path.substring(iSlash+1);
|
||||
let href = location.href;
|
||||
let iQ = href.indexOf('?');
|
||||
let iSlash = path.lastIndexOf('/',iQ-1);
|
||||
let filenames=path.substring(iSlash+1,iQ);
|
||||
{
|
||||
let iDot = filenames.indexOf('.');
|
||||
if(iDot>0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue