Merge pull request #11533 from Snuffleupagus/rm-useOnlyCssZoom-hash

Remove the "useOnlyCssZoom" (debugging) hash parameter
This commit is contained in:
Tim van der Meij 2020-01-23 23:34:31 +01:00 committed by GitHub
commit 9791d7e4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}