We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CSS.supports
1 parent 87eb0c5 commit 1778982Copy full SHA for 1778982
web/pdf_sidebar_resizer.js
@@ -47,8 +47,10 @@ class PDFSidebarResizer {
47
this.eventBus = eventBus;
48
this.l10n = l10n;
49
50
- if (typeof CSS === 'undefined' || typeof CSS.supports !== 'function' ||
51
- !CSS.supports(SIDEBAR_WIDTH_VAR, `calc(-1 * ${SIDEBAR_MIN_WIDTH}px)`)) {
+ if ((typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) &&
+ (typeof CSS === 'undefined' || typeof CSS.supports !== 'function' ||
52
+ !CSS.supports(SIDEBAR_WIDTH_VAR,
53
+ `calc(-1 * ${SIDEBAR_MIN_WIDTH}px)`))) {
54
console.warn('PDFSidebarResizer: ' +
55
'The browser does not support resizing of the sidebar.');
56
return;
0 commit comments