🐛 修复地址问题

This commit is contained in:
崮生 2020-03-20 10:44:24 +08:00
parent 37882fa9e1
commit 39bf693673

View File

@ -1,4 +1,4 @@
const server=location.href+"/"
const server=location.href
export function get_font(font:string, text:string) {
return new Promise((rs, re) => {
var xhr = new XMLHttpRequest();
@ -9,7 +9,7 @@ export function get_font(font:string, text:string) {
});
xhr.open(
'GET',
`${server}/fontmin?font=${encodeURIComponent(
`${server}fontmin?font=${encodeURIComponent(
font,
)}&text=${encodeURIComponent(text)}`,
);
@ -27,7 +27,7 @@ export function get_font_list(font:string, text:string) {
});
xhr.open(
'GET',
`${server}/font_list`,
`${server}font_list`,
);
xhr.onerror=re
xhr.send();