chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -18,12 +18,12 @@ import pkg from '../package.json';
|
||||
|
||||
type AssetsType = 'cmaps' | 'pdf.worker';
|
||||
|
||||
// 这里需要写 bnpm 已经发布的版本
|
||||
// Here you need to write the version that bnpm has released.
|
||||
//
|
||||
const DEFAULT_VERSION = '0.1.0-alpha.x6e892414ec';
|
||||
|
||||
/**
|
||||
* 该方法用于生产 unpkg 环境的 worker & cmaps 链接,注意并非 pdfjs 原生方法
|
||||
* This method is used to produce the worker & cmaps link of the unpkg environment. Note that it is not a native method of pdfjs
|
||||
*/
|
||||
export const generatePdfAssetsUrl = (assets: AssetsType) => {
|
||||
const { name } = pkg;
|
||||
|
||||
@@ -19,7 +19,7 @@ import { GlobalWorkerOptions } from 'pdfjs-dist';
|
||||
import { generatePdfAssetsUrl } from './generate-assets';
|
||||
|
||||
/**
|
||||
* 该方法用于初始化 pdfjs-dist 的 workerSrc 参数,可重复调用
|
||||
* This method is used to initialize the workerSrc parameter of pdfjs-dist, which can be called repeatedly
|
||||
*/
|
||||
export const initPdfJsWorker = () => {
|
||||
if (!GlobalWorkerOptions.workerSrc) {
|
||||
|
||||
Reference in New Issue
Block a user