MCPcopy
hub / github.com/ocsjs/ocsjs / loadTyprMapping

Function loadTyprMapping

packages/scripts/src/projects/cx.ts:1069–1080  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1067}
1068
1069async function loadTyprMapping() {
1070 try {
1071 $console.log('正在加载繁体字库。');
1072 return await request('https://cdn.ocsjs.com/resources/font/table.json', {
1073 type: 'GM_xmlhttpRequest',
1074 method: 'get',
1075 responseType: 'json'
1076 });
1077 } catch (err) {
1078 $console.error('载繁体字库加载失败,请刷新页面重试:', String(err));
1079 }
1080}
1081
1082/**
1083 * cx分析工具

Callers 1

mappingRecognizeFunction · 0.85

Calls 1

requestFunction · 0.90

Tested by

no test coverage detected