Skip to content

Commit 15241a9

Browse files
committed
normalizing JSUtil.getAppletCodePath()
1 parent c25eb45 commit 15241a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public URL getDocumentBase() {
10121012
public static String getAppletCodePath() {
10131013
try {
10141014
JSFrameViewer ap = (JSFrameViewer) DOMNode.getAttr(getApplet(), "_appletPanel");
1015-
return ap.appletCodeBase;
1015+
return new URL(ap.appletCodeBase).toString();
10161016
} catch (Throwable t) {
10171017
return null;
10181018
}

0 commit comments

Comments
 (0)