import jalview.bin.Cache;
import jalview.bin.Console;
-import jalview.bin.Jalview;
import jalview.util.ChannelProperties;
import jalview.util.HttpUtils;
if (sendDefaultProps)
{
props.putAll(defaultProps);
- if (Jalview.isHeadlessMode())
- {
- props.put("headless", "true");
- }
}
// add (and overwrite with) the passed in props
*/
public static void initAnalytics()
{
- initAnalytics(false);
- }
-
- public static void initAnalytics(boolean headless)
- {
Plausible.setEnabled(true);
String appName = ChannelProperties.getProperty("app_name") + " Desktop";
pathParts.add(appName);
pathParts.add(version);
pathParts.add(APPLICATION_STARTED);
- if (headless)
- {
- pathParts.add("headless");
- }
path = ("/" + String.join("/", pathParts)).replace(' ', '+');
/*
}