aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-03-11 10:36:55 +0800
committercrupest <crupest@outlook.com>2021-03-11 10:36:55 +0800
commit385afe2dc2daf8e8e13978b9086eb715dd8d94bd (patch)
treefe659fd4fdbcc33983bd738cb3b5289797e43f1c /FrontEnd/src
parent85113bd6e24d385bc3986e01b9f7c9e3b5e435e5 (diff)
downloadtimeline-385afe2dc2daf8e8e13978b9086eb715dd8d94bd.tar.gz
timeline-385afe2dc2daf8e8e13978b9086eb715dd8d94bd.tar.bz2
timeline-385afe2dc2daf8e8e13978b9086eb715dd8d94bd.zip
fix: Fix a bug when base64 string.
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/app/http/common.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/app/http/common.ts b/FrontEnd/src/app/http/common.ts
index 5c44e8e3..ef9a505e 100644
--- a/FrontEnd/src/app/http/common.ts
+++ b/FrontEnd/src/app/http/common.ts
@@ -65,7 +65,7 @@ export function base64(blob: Blob): Promise<string> {
return new Promise<string>((resolve) => {
const reader = new FileReader();
reader.onload = function () {
- resolve((reader.result as string).replace(/^data:.+;base64,/, ""));
+ resolve((reader.result as string).replace(/^data:.*;base64,/, ""));
};
reader.readAsDataURL(blob);
});