mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Using web browsers locale in the extension mode
This commit is contained in:
parent
e7f63e3e5e
commit
32e9eb35fe
3 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue