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:
parent
02906d7ef1
commit
99c9079f54
3 changed files with 27 additions and 10 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue