Merge pull request #11533 from Snuffleupagus/rm-useOnlyCssZoom-hash
Remove the "useOnlyCssZoom" (debugging) hash parameter
This commit is contained in:
commit
9791d7e4d3
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
|
* @private
|
||||||
*/
|
*/
|
||||||
async _parseHashParameters() {
|
async _parseHashParameters() {
|
||||||
@ -249,11 +250,12 @@ const PDFViewerApplication = {
|
|||||||
) {
|
) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
const waitOn = [];
|
|
||||||
|
|
||||||
// Special debugging flags in the hash section of the URL.
|
|
||||||
const hash = document.location.hash.substring(1);
|
const hash = document.location.hash.substring(1);
|
||||||
const hashParams = parseQueryString(hash);
|
if (!hash) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
const hashParams = parseQueryString(hash),
|
||||||
|
waitOn = [];
|
||||||
|
|
||||||
if (
|
if (
|
||||||
"disableworker" in hashParams &&
|
"disableworker" in hashParams &&
|
||||||
@ -285,9 +287,6 @@ const PDFViewerApplication = {
|
|||||||
if ("webgl" in hashParams) {
|
if ("webgl" in hashParams) {
|
||||||
AppOptions.set("enableWebGL", hashParams["webgl"] === "true");
|
AppOptions.set("enableWebGL", hashParams["webgl"] === "true");
|
||||||
}
|
}
|
||||||
if ("useonlycsszoom" in hashParams) {
|
|
||||||
AppOptions.set("useOnlyCssZoom", hashParams["useonlycsszoom"] === "true");
|
|
||||||
}
|
|
||||||
if ("verbosity" in hashParams) {
|
if ("verbosity" in hashParams) {
|
||||||
AppOptions.set("verbosity", hashParams["verbosity"] | 0);
|
AppOptions.set("verbosity", hashParams["verbosity"] | 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user