Skip to content

Commit

Permalink
使用 cdn 加载 data
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Oct 12, 2023
1 parent 364b441 commit 5567994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const store = proxy({

async function init() {
const [response] = await Promise.all([
fetch(require("./data.bin")),
fetch("http://ky-genshin-map.test.upcdn.net/data.txt"),
initCanvaskit({
locateFile() {
return "https://cdn.staticfile.org/canvaskit-wasm/0.38.2/canvaskit.wasm";
Expand Down

0 comments on commit 5567994

Please sign in to comment.