client/js/main.js
changeset 79 f33771f3c510
parent 78 af9e716b01bc
child 110 55454c900296
equal deleted inserted replaced
78:af9e716b01bc 79:f33771f3c510
    97 
    97 
    98 Rkns.Renkan = function(_opts) {
    98 Rkns.Renkan = function(_opts) {
    99     var _this = this;
    99     var _this = this;
   100     
   100     
   101     if (typeof _opts.language !== "string" || typeof Rkns.i18n[_opts.language] == "undefined") {
   101     if (typeof _opts.language !== "string" || typeof Rkns.i18n[_opts.language] == "undefined") {
   102         _opts.language = "en";
   102         _opts.language = (navigator.language || navigator.userLanguage || "en");
   103     }
   103     }
   104     if (typeof _opts.container !== "string") {
   104     if (typeof _opts.container !== "string") {
   105         _opts.container = "renkan";
   105         _opts.container = "renkan";
   106     }
   106     }
   107     if (typeof _opts.search !== "object" || !_opts.search) {
   107     if (typeof _opts.search !== "object" || !_opts.search) {