Browse Source

Hide the browse bar for the ff extension.

Brendan Dahl 13 years ago
parent
commit
f3b2a03de6
  1. 2
      web/viewer.css
  2. 2
      web/viewer.html
  3. 8
      web/viewer.js

2
web/viewer.css

@ -9,7 +9,7 @@ body { @@ -9,7 +9,7 @@ body {
}
[hidden] {
display: none;
display: none !important;
}
/* === Toolbar === */

2
web/viewer.html

@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
<input id="fileInput" type="file" oncontextmenu="return false;"/>
<div class="separator"></div>
<div id="fileInputSeperator" class="separator"></div>
<a href="#" id="viewBookmark" title="Bookmark (or copy) current location">
<img src="images/bookmark.svg" alt="Bookmark" align="top" height="16"/>

8
web/viewer.js

@ -995,10 +995,14 @@ window.addEventListener('load', function webViewerLoad(evt) { @@ -995,10 +995,14 @@ window.addEventListener('load', function webViewerLoad(evt) {
window.location.toString() : params.file || kDefaultURL;
PDFView.open(file, parseFloat(scale));
if (!window.File || !window.FileReader || !window.FileList || !window.Blob)
if (PDFJS.isFirefoxExtension || !window.File || !window.FileReader ||
!window.FileList || !window.Blob) {
document.getElementById('fileInput').setAttribute('hidden', 'true');
else
document.getElementById('fileInputSeperator')
.setAttribute('hidden', 'true');
} else {
document.getElementById('fileInput').value = null;
}
if ('disableWorker' in params)
PDFJS.disableWorker = (params['disableWorker'] === 'true');

Loading…
Cancel
Save