mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Lint errors
This commit is contained in:
parent
5ca12d549e
commit
7d648cfa13
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@ function getDOMWindow(aChannel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLocalizedStrings(path) {
|
function getLocalizedStrings(path) {
|
||||||
var stringBundle = Cc["@mozilla.org/intl/stringbundle;1"].
|
var stringBundle = Cc['@mozilla.org/intl/stringbundle;1'].
|
||||||
getService(Ci.nsIStringBundleService).
|
getService(Ci.nsIStringBundleService).
|
||||||
createBundle("chrome://pdfviewer/locale/" + path);
|
createBundle('chrome://pdfviewer/locale/' + path);
|
||||||
|
|
||||||
var map = {};
|
var map = {};
|
||||||
var enumerator = stringBundle.getSimpleEnumeration();
|
var enumerator = stringBundle.getSimpleEnumeration();
|
||||||
|
@ -142,7 +142,7 @@ ChromeActions.prototype = {
|
||||||
this.localizedStrings = getLocalizedStrings('viewer.properties');
|
this.localizedStrings = getLocalizedStrings('viewer.properties');
|
||||||
|
|
||||||
var result = this.localizedStrings[data];
|
var result = this.localizedStrings[data];
|
||||||
return JSON.stringify(result || null)
|
return JSON.stringify(result || null);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Unable to retrive localized strings: ' + e);
|
log('Unable to retrive localized strings: ' + e);
|
||||||
return 'null';
|
return 'null';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue