- The href will always start with path as it is sliced starting from 0 Not sure if it is possible that window locatin does not have a slash unless its some about:-page. - Should be possible to query for the file name directly without regex, if the filename contains special regex characters it may behave unexpectedly
3.5 KiB
3.5 KiB