mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Fix coding style in extensions/firefox/bootstrap.js
This commit is contained in:
parent
597d388930
commit
2b5fb59b67
1 changed files with 6 additions and 3 deletions
9
extensions/firefox/bootstrap.js
vendored
9
extensions/firefox/bootstrap.js
vendored
|
@ -51,8 +51,9 @@ function setStringPref(pref, value) {
|
|||
}
|
||||
|
||||
function log(str) {
|
||||
if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false))
|
||||
if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false)) {
|
||||
return;
|
||||
}
|
||||
dump(str + '\n');
|
||||
}
|
||||
|
||||
|
@ -101,8 +102,9 @@ Factory.prototype = {
|
|||
|
||||
// nsIFactory
|
||||
createInstance: function createInstance(aOuter, iid) {
|
||||
if (aOuter !== null)
|
||||
if (aOuter !== null) {
|
||||
throw Cr.NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
return (new (this._targetConstructor)()).QueryInterface(iid);
|
||||
},
|
||||
|
||||
|
@ -150,8 +152,9 @@ function startup(aData, aReason) {
|
|||
}
|
||||
|
||||
function shutdown(aData, aReason) {
|
||||
if (aReason == APP_SHUTDOWN)
|
||||
if (aReason == APP_SHUTDOWN) {
|
||||
return;
|
||||
}
|
||||
var ioService = Services.io;
|
||||
var resProt = ioService.getProtocolHandler('resource')
|
||||
.QueryInterface(Ci.nsIResProtocolHandler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue