mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Replace our URL
polyfill with the one from core-js
`core-js` polyfills have proven to be of good quality and using them prevents us from having to maintain them ourselves.
This commit is contained in:
parent
c71a291317
commit
1f5ebfbf0c
16 changed files with 26 additions and 713 deletions
|
@ -25,8 +25,7 @@ import { AppOptions, OptionKind } from './app_options';
|
|||
import {
|
||||
build, createObjectURL, getDocument, getFilenameFromUrl, GlobalWorkerOptions,
|
||||
InvalidPDFException, LinkTarget, loadScript, MissingPDFException, OPS,
|
||||
PDFWorker, shadow, UnexpectedResponseException, UNSUPPORTED_FEATURES, URL,
|
||||
version
|
||||
PDFWorker, shadow, UnexpectedResponseException, UNSUPPORTED_FEATURES, version
|
||||
} from 'pdfjs-lib';
|
||||
import { CursorTool, PDFCursorTools } from './pdf_cursor_tools';
|
||||
import { PDFRenderingQueue, RenderingStates } from './pdf_rendering_queue';
|
||||
|
|
|
@ -19,7 +19,6 @@ import { AppOptions } from './app_options';
|
|||
import { BasePreferences } from './preferences';
|
||||
import { DownloadManager } from './download_manager';
|
||||
import { GenericL10n } from './genericl10n';
|
||||
import { URL } from 'pdfjs-lib';
|
||||
|
||||
if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('CHROME')) {
|
||||
throw new Error('Module "pdfjs-web/chromecom" shall not be used outside ' +
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
apiCompatibilityParams, createObjectURL, createValidAbsoluteUrl, URL
|
||||
apiCompatibilityParams, createObjectURL, createValidAbsoluteUrl
|
||||
} from 'pdfjs-lib';
|
||||
|
||||
if (typeof PDFJSDev !== 'undefined' && !PDFJSDev.test('CHROME || GENERIC')) {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
import '../extensions/firefox/tools/l10n';
|
||||
import { createObjectURL, PDFDataRangeTransport, shadow, URL } from 'pdfjs-lib';
|
||||
import { createObjectURL, PDFDataRangeTransport, shadow } from 'pdfjs-lib';
|
||||
import { BasePreferences } from './preferences';
|
||||
import { DEFAULT_SCALE_VALUE } from './ui_utils';
|
||||
import { PDFViewerApplication } from './app';
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
import { CSS_UNITS, NullL10n } from './ui_utils';
|
||||
import { PDFPrintServiceFactory, PDFViewerApplication } from './app';
|
||||
import { AppOptions } from './app_options';
|
||||
import { URL } from 'pdfjs-lib';
|
||||
|
||||
let activeService = null;
|
||||
let overlayManager = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue