{
try
{
- return (isJS() ? new URL(/**
- * @j2sNative J2S.thisApplet._applet.appletViewer.appletDocumentBase
- * ||
- */
- "") : null);
+ if (isJS())
+ {
+ @SuppressWarnings("unused")
+ Object g = Thread.currentThread().getThreadGroup();
+ return new URL(/**
+ * @j2sNative g.秘html5Applet._appletPanel.appletDocumentBase
+ * ||
+ */
+ "");
+ }
} catch (MalformedURLException e)
{
- return null;
}
+ return null;
}
public static URL getCodeBase()
{
try
{
- return (isJS() ? new URL(/**
- * @j2sNative J2S.thisApplet._applet.appletViewer.appletCodeBase
- * ||
- */
- "") : null);
+ if (isJS())
+ {
+ @SuppressWarnings("unused")
+ Object g = Thread.currentThread().getThreadGroup();
+ return new URL(/**
+ * @j2sNative g.秘html5Applet._appletPanel.appletCodeBase
+ * ||
+ */
+ "");
+ }
} catch (MalformedURLException e)
{
- return null;
}
+ return null;
}
}