Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
fix: adding explicit encodeUriComponent to hopefully help iOS load ch…
Browse files Browse the repository at this point in the history
…ars properly
  • Loading branch information
chanind committed Jun 22, 2019
1 parent e8ca6c7 commit f06d33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaultCharDataLoader.js
@@ -1,5 +1,5 @@
const VERSION = '2.0';
const getCharDataUrl = (char) => `https://cdn.jsdelivr.net/npm/hanzi-writer-data@${VERSION}/${char}.json`;
const getCharDataUrl = (char) => `https://cdn.jsdelivr.net/npm/hanzi-writer-data@${VERSION}/${encodeURIComponent(char)}.json`;

export default (char, onLoad, onError) => {
wx.request({
Expand Down

0 comments on commit f06d33d

Please sign in to comment.