mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #11533 from Snuffleupagus/rm-useOnlyCssZoom-hash
Remove the "useOnlyCssZoom" (debugging) hash parameter
This commit is contained in:
commit
9791d7e4d3
1 changed files with 6 additions and 7 deletions
13
web/app.js
13
web/app.js
|
@ -239,6 +239,7 @@ const PDFViewerApplication = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Potentially parse special debugging flags in the hash section of the URL.
|
||||
* @private
|
||||
*/
|
||||
async _parseHashParameters() {
|
||||
|
@ -249,11 +250,12 @@ const PDFViewerApplication = {
|
|||
) {
|
||||
return undefined;
|
||||
}
|
||||
const waitOn = [];
|
||||
|
||||
// Special debugging flags in the hash section of the URL.
|
||||
const hash = document.location.hash.substring(1);
|
||||
const hashParams = parseQueryString(hash);
|
||||
if (!hash) {
|
||||
return undefined;
|
||||
}
|
||||
const hashParams = parseQueryString(hash),
|
||||
waitOn = [];
|
||||
|
||||
if (
|
||||
"disableworker" in hashParams &&
|
||||
|
@ -285,9 +287,6 @@ const PDFViewerApplication = {
|
|||
if ("webgl" in hashParams) {
|
||||
AppOptions.set("enableWebGL", hashParams["webgl"] === "true");
|
||||
}
|
||||
if ("useonlycsszoom" in hashParams) {
|
||||
AppOptions.set("useOnlyCssZoom", hashParams["useonlycsszoom"] === "true");
|
||||
}
|
||||
if ("verbosity" in hashParams) {
|
||||
AppOptions.set("verbosity", hashParams["verbosity"] | 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue