1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

[CSP] removes inlined styles and scripts

This commit is contained in:
Yury Delendik 2013-07-30 16:36:45 -05:00
parent 02906d7ef1
commit 99c9079f54
3 changed files with 27 additions and 10 deletions

View file

@ -117,6 +117,13 @@ function scrollIntoView(element, spot) {
parent.scrollTop = offsetY;
}
/**
* Event handler to suppress context menu.
*/
function noContextMenuHandler(e) {
e.preventDefault();
}
/**
* Returns the filename or guessed filename from the url (see issue 3455).
* url {String} The original PDF location.