2014-09-05 22:34:30 +04:00
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The URL query parameters. One or more of the following:
|
|
|
|
*
|
|
|
|
* args (gets split from comma-separated list to Array)
|
2014-10-28 00:23:23 +03:00
|
|
|
* gamepad
|
2014-09-06 01:57:32 +04:00
|
|
|
* icc_mcc
|
|
|
|
* icc_mnc
|
|
|
|
* icc_msisdn
|
2014-09-05 22:34:30 +04:00
|
|
|
* jad
|
|
|
|
* jars
|
2014-09-09 06:17:08 +04:00
|
|
|
* logConsole
|
2014-09-08 19:10:25 +04:00
|
|
|
* logLevel
|
2014-09-05 22:34:30 +04:00
|
|
|
* main
|
|
|
|
* midletClassName
|
2014-09-06 01:57:32 +04:00
|
|
|
* network_mcc
|
|
|
|
* network_mnc
|
2014-11-21 10:21:32 +03:00
|
|
|
* platform
|
2014-09-19 01:34:28 +04:00
|
|
|
* autosize
|
2014-12-05 21:13:07 +03:00
|
|
|
* fontSize
|
2014-09-05 22:34:30 +04:00
|
|
|
*
|
|
|
|
* Keep this list up-to-date!
|
|
|
|
*/
|
|
|
|
|
2015-01-22 01:48:48 +03:00
|
|
|
(function() {
|
2014-09-05 22:34:30 +04:00
|
|
|
var params = {};
|
|
|
|
|
|
|
|
location.search.substring(1).split("&").forEach(function (param) {
|
|
|
|
param = param.split("=").map(function(v) {
|
|
|
|
return v.replace(/\+/g, " ");
|
|
|
|
}).map(decodeURIComponent);
|
|
|
|
params[param[0]] = param[1];
|
|
|
|
});
|
|
|
|
|
2015-01-13 02:29:12 +03:00
|
|
|
params.args = (params.args || "").split(",");
|
2014-09-05 22:34:30 +04:00
|
|
|
|
2015-01-22 02:19:35 +03:00
|
|
|
if ("midletClassName" in params) {
|
|
|
|
params.midletClassName = params.midletClassName.replace(/\//g, '.');
|
|
|
|
}
|
|
|
|
|
2015-01-14 00:33:17 +03:00
|
|
|
for (var name in params) {
|
|
|
|
config[name] = params[name];
|
|
|
|
}
|
2014-09-05 22:34:30 +04:00
|
|
|
})();
|