You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
7 years ago
|
/*jshint browser:true, devel:true*/
|
||
|
if (!('sankore' in window)) {
|
||
|
window.sankore = {
|
||
|
preferences: {
|
||
|
state: ''
|
||
|
},
|
||
|
|
||
|
setPreference: function (name, value) {
|
||
|
console.log('Preference "' + name + '" set to : ' + value);
|
||
|
this.preferences[name] = value;
|
||
|
},
|
||
|
|
||
|
preference: function (name) {
|
||
|
console.log('Accessing "' + name + '"');
|
||
|
return this.preferences[name] || '';
|
||
|
},
|
||
|
|
||
|
locale: function () {
|
||
|
return window.navigator.language;
|
||
|
}
|
||
|
};
|
||
|
}
|