mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Switch to stream converter for extension.
This commit is contained in:
parent
edc632e469
commit
178b89342a
8 changed files with 115 additions and 72 deletions
3
extensions/firefox/bootstrap.js
vendored
3
extensions/firefox/bootstrap.js
vendored
|
@ -34,13 +34,10 @@ function shutdown(aData, aReason) {
|
|||
}
|
||||
|
||||
function install(aData, aReason) {
|
||||
let url = 'chrome://pdf.js/content/web/viewer.html?file=%s';
|
||||
Services.prefs.setCharPref('extensions.pdf.js.url', url);
|
||||
Services.prefs.setBoolPref('extensions.pdf.js.active', false);
|
||||
}
|
||||
|
||||
function uninstall(aData, aReason) {
|
||||
Services.prefs.clearUserPref('extensions.pdf.js.url');
|
||||
Services.prefs.clearUserPref('extensions.pdf.js.active');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue