1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

Using web browsers locale in the extension mode

This commit is contained in:
Yury Delendik 2012-05-01 20:37:03 -05:00
parent e7f63e3e5e
commit 32e9eb35fe
3 changed files with 14 additions and 2 deletions

View file

@ -58,6 +58,9 @@ ChromeActions.prototype = {
return '{}';
return application.prefs.getValue(EXT_PREFIX + '.database', '{}');
},
getLocale: function() {
return application.prefs.getValue('general.useragent.locale', 'en-US');
},
pdfBugEnabled: function() {
return application.prefs.getValue(EXT_PREFIX + '.pdfBugEnabled', false);
}