Merge pull request #16605 from Snuffleupagus/rm-enableFloatingToolbar-pref
[GeckoView] Remove the `enableFloatingToolbar` preference
This commit is contained in:
commit
d357906c3f
16
web/app.js
16
web/app.js
@ -597,15 +597,13 @@ const PDFViewerApplication = {
|
||||
? window.isGECKOVIEW
|
||||
: PDFJSDev.test("GECKOVIEW")
|
||||
) {
|
||||
if (AppOptions.get("enableFloatingToolbar")) {
|
||||
this.toolbar = new Toolbar(
|
||||
appConfig.toolbar,
|
||||
eventBus,
|
||||
l10n,
|
||||
await this._nimbusDataPromise,
|
||||
externalServices
|
||||
);
|
||||
}
|
||||
this.toolbar = new Toolbar(
|
||||
appConfig.toolbar,
|
||||
eventBus,
|
||||
l10n,
|
||||
await this._nimbusDataPromise,
|
||||
externalServices
|
||||
);
|
||||
} else {
|
||||
this.toolbar = new Toolbar(appConfig.toolbar, eventBus, l10n);
|
||||
}
|
||||
|
@ -88,11 +88,6 @@ const defaultOptions = {
|
||||
value: false,
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
enableFloatingToolbar: {
|
||||
/** @type {boolean} */
|
||||
value: typeof PDFJSDev === "undefined",
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
enablePermissions: {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user