MCPcopy
hub / github.com/ocsjs/ocsjs / loadFontMapping

Function loadFontMapping

packages/scripts/src/projects/yuketang.ts:461–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459});
460
461async function loadFontMapping() {
462 try {
463 $msg.info('正在解析字体');
464 return await request('https://cdn.ocsjs.com/resources/font/yuketang_font_map.json', {
465 type: 'GM_xmlhttpRequest',
466 method: 'get',
467 responseType: 'json'
468 });
469 } catch (err) {
470 $msg.error('载繁体字库加载失败,请刷新页面重试:' + String(err));
471 }
472}
473
474/**
475 * 观看视频

Callers 1

oncompleteFunction · 0.85

Calls 1

requestFunction · 0.90

Tested by

no test coverage detected