зеркало из https://github.com/mozilla/pluotsorbet.git
return locale in midp.Configuration
This commit is contained in:
Родитель
7435a8c18f
Коммит
853ba9a620
9
midp.js
9
midp.js
|
@ -352,17 +352,20 @@ Native["com/sun/midp/main/Configuration.getProperty0.(Ljava/lang/String;)Ljava/l
|
|||
var value;
|
||||
switch (util.fromJavaString(key)) {
|
||||
case "com.sun.midp.publickeystore.WebPublicKeyStore":
|
||||
value = CLASSES.newString("web.pks");
|
||||
value = "web.pks";
|
||||
break;
|
||||
case "com.sun.midp.events.dispatchTableInitSize":
|
||||
value = CLASSES.newString("16");
|
||||
value = "16";
|
||||
break;
|
||||
case "microedition.locale":
|
||||
value = navigator.language;
|
||||
break;
|
||||
default:
|
||||
console.log("UNKNOWN PROPERTY (com/sun/midp/main/Configuration): " + util.fromJavaString(key));
|
||||
value = null;
|
||||
break;
|
||||
}
|
||||
stack.push(value);
|
||||
stack.push(value ? CLASSES.newString(value) : null);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/events/EventQueue.getNativeEventQueueHandle.()I"] = function(ctx, stack) {
|
||||
|
|
|
@ -75,7 +75,7 @@ Native["java/lang/System.getProperty0.(Ljava/lang/String;)Ljava/lang/String;"] =
|
|||
value = null;
|
||||
break;
|
||||
}
|
||||
stack.push(CLASSES.newString(value));
|
||||
stack.push(value ? CLASSES.newString(value) : null);
|
||||
}
|
||||
|
||||
Native["java/lang/System.currentTimeMillis.()J"] = function(ctx, stack) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче