Skip to content

Commit

Permalink
adjust build for firefox 68 ESR compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
perrinjerome committed Oct 26, 2023
1 parent ce87167 commit 86f6bfc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.mjs
Expand Up @@ -79,7 +79,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());
const ENV_TARGETS = [
"last 2 versions",
"Chrome >= 92",
"Firefox ESR",
"Firefox >= 68",
"Safari >= 15.4",
"Node >= 18",
"> 1%",
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -44,6 +44,7 @@
"postcss-nesting": "^12.0.1",
"prettier": "^3.0.3",
"puppeteer": "^21.2.1",
"resize-observer-polyfill": "^1.5.1",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^15.10.3",
Expand Down
1 change: 1 addition & 0 deletions src/display/editor/ink.js
Expand Up @@ -22,6 +22,7 @@ import { AnnotationEditor } from "./editor.js";
import { InkAnnotationElement } from "../annotation_layer.js";
import { noContextMenu } from "../display_utils.js";
import { opacityToHex } from "./tools.js";
import ResizeObserver from 'resize-observer-polyfill';

/**
* Basic draw editor in order to generate an Ink annotation.
Expand Down
1 change: 1 addition & 0 deletions src/display/editor/stamp.js
Expand Up @@ -17,6 +17,7 @@ import { AnnotationEditorType, shadow } from "../../shared/util.js";
import { AnnotationEditor } from "./editor.js";
import { PixelsPerInch } from "../display_utils.js";
import { StampAnnotationElement } from "../annotation_layer.js";
import ResizeObserver from 'resize-observer-polyfill';

/**
* Basic text editor in order to create a FreeTex annotation.
Expand Down
1 change: 1 addition & 0 deletions web/pdf_viewer.js
Expand Up @@ -12,6 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ResizeObserver from 'resize-observer-polyfill';

/** @typedef {import("../src/display/api").PDFDocumentProxy} PDFDocumentProxy */
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
Expand Down

0 comments on commit 86f6bfc

Please sign in to comment.