mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[CRX] Add Referer request header if needed
This patch adds the Referer request header to PDF requests if the original PDF request included the Referer header.
This commit is contained in:
parent
d95b4e475e
commit
adb2f8ae21
6 changed files with 223 additions and 3 deletions
|
@ -795,8 +795,8 @@ var PDFViewerApplication = {
|
|||
if (!PDFJS.disableHistory && !self.isViewerEmbedded) {
|
||||
// The browsing history is only enabled when the viewer is standalone,
|
||||
// i.e. not when it is embedded in a web page.
|
||||
if (!self.preferenceShowPreviousViewOnLoad && window.history.state) {
|
||||
window.history.replaceState(null, '');
|
||||
if (!self.preferenceShowPreviousViewOnLoad) {
|
||||
PDFHistory.clearHistoryState();
|
||||
}
|
||||
self.pdfHistory.initialize(self.documentFingerprint);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue