mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Skip unneeded steps on APP_SHUTDOWN.
This commit is contained in:
parent
6833f64db3
commit
7c902eb612
1 changed files with 2 additions and 0 deletions
2
extensions/firefox/bootstrap.js
vendored
2
extensions/firefox/bootstrap.js
vendored
|
@ -79,6 +79,8 @@ function startup(aData, aReason) {
|
|||
function shutdown(aData, aReason) {
|
||||
if (Services.prefs.getBoolPref('extensions.pdf.js.active'))
|
||||
Services.prefs.setBoolPref('extensions.pdf.js.active', false);
|
||||
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