File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,11 @@ var mainOnly = path.substring(0, path.indexOf("://")) + "://" + original_host +
6161//---***========================================***---通用func---***========================================***---
6262function changeURL(relativePath){
6363 if(relativePath == null) return null;
64- if(relativePath.startsWith("data:") || relativePath.startsWith("mailto:") || relativePath.startsWith("javascript:") || relativePath.startsWith("chrome") || relativePath.startsWith("edge")) return relativePath;
64+ try{
65+ if(relativePath.startsWith("data:") || relativePath.startsWith("mailto:") || relativePath.startsWith("javascript:") || relativePath.startsWith("chrome") || relativePath.startsWith("edge")) return relativePath;
66+ }catch{
67+ // duckduckgo mysterious BUG that will trigger sometimes, just ignore ...
68+ }
6569 try{
6670 if(relativePath && relativePath.startsWith(nowlink)) relativePath = relativePath.substring(nowlink.length);
6771 if(relativePath && relativePath.startsWith(base + "/")) relativePath = relativePath.substring(base.length + 1);
You can’t perform that action at this time.
0 commit comments