fix(url): use URI-safe base64 encoding in URLs

This commit is contained in:
Mike Cousins
2020-01-10 14:20:36 -05:00
parent 5d4364f6b5
commit 79f1765c9f
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -35,5 +35,5 @@ export const fromUrl = data => {
};
export const updateCodeStore = newState => {
codeStore.set(newState);
push('/edit/' + Base64.encode(JSON.stringify(newState)))
};
push('/edit/' + Base64.encodeURI(JSON.stringify(newState)))
};