private static boolean propsAreReadOnly = Platform.isJS();
+ private static String JS_PROPERTY_PREFIX = "jalview_";
+
public static void initLogger()
{
if (log != null)
propsAreReadOnly = true;
}
- if (propertiesFile != null) {
+ if (propertiesFile == null)
+ { // BH 2019
+ Platform.readInfoProperties(JS_PROPERTY_PREFIX , applicationProperties);
+ } else {
try
{
InputStream fis;
*/
public static String getProperty(String key)
{
- return applicationProperties.getProperty(key);
+
+ String prop = applicationProperties.getProperty(key);
+ if (prop == null && Platform.isJS())
+ {
+ prop = applicationProperties.getProperty(Platform.getUniqueAppletID() + "_" + JS_PROPERTY_PREFIX + key);
+ }
+
+ return prop;
}
/**