mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
This commit is contained in:
parent
d28fb5af6a
commit
ae740768b0
1 changed files with 3 additions and 1 deletions
|
@ -2242,7 +2242,9 @@ window.addEventListener('afterprint', function afterPrint(evt) {
|
|||
//window.navigator.mozSetMessageHandler('activity', function(activity) {
|
||||
// var blob = activity.source.data.blob;
|
||||
// PDFJS.maxImageSize = 1024 * 1024;
|
||||
// var fileURL = activity.source.data.url;
|
||||
// var fileURL = activity.source.data.url ||
|
||||
// activity.source.data.filename ||
|
||||
// " "; // if no url or filename, use a non-empty string
|
||||
//
|
||||
// var url = URL.createObjectURL(blob);
|
||||
// // We need to delay opening until all HTML is loaded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue