mirror of
https://github.com/2234839/web-font.git
synced 2025-04-06 05:25:44 +08:00
🐛 修复请求地址的问题
This commit is contained in:
parent
f4d68d9030
commit
37882fa9e1
@ -1,4 +1,4 @@
|
|||||||
const server="/"
|
const server=location.href+"/"
|
||||||
export function get_font(font:string, text:string) {
|
export function get_font(font:string, text:string) {
|
||||||
return new Promise((rs, re) => {
|
return new Promise((rs, re) => {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user