blob: 7e4079fe3de01d5a5d7550eb38566ea6af6e12c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* Checks if the page is displayed in an iframe. If not redirect to /.
**/
function redirectIfNotDisplayedInFrame () {
try {
if (window.frameElement) {
return;
}
} catch (e) {}
window.location.href = '/';
}
redirectIfNotDisplayedInFrame();
PDFJS.openExternalLinksInNewWindow = true;
PDFJS.isEvalSupported = false;
PDFJS.workerSrc = document.getElementsByTagName('head')[0].getAttribute('data-workersrc');
|