Skip to content

Commit 2c7f44d

Browse files
committed
Fix Backup Error
1 parent 9f1f185 commit 2c7f44d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

STOREIMG/제목 없음.png

173 KB
Loading

src/container/editor/EditorContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class EditorContainer extends Component {
102102
<div className="option">
103103
<div className="block-name">추가 옵션</div>
104104
<label className="options">
105-
Latest Jquery 자동 추가:
105+
Latest jQuery 자동 추가:
106106
<input
107107
type="checkbox"
108108
checked={this.state.jquery}

src/container/main/MainContainer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class MainContainer extends Component {
4949

5050
Upload(e) {
5151
let fileReader = new FileReader();
52+
console.log(fileReader.readyState);
5253
fileReader.onload = () => {
5354
if (this.Validation(fileReader.result)) {
5455
let result = JSON.parse(fileReader.result);
@@ -59,6 +60,9 @@ class MainContainer extends Component {
5960

6061
this.Save(key, nickname, url, code, jquery);
6162
}
63+
this.setState({
64+
err: ""
65+
});
6266
});
6367
});
6468
} else {
@@ -127,7 +131,10 @@ class MainContainer extends Component {
127131

128132
<div className="big big-btn">
129133
<a
130-
href={"data:text/json," + JSON.stringify(this.props.storageList)}
134+
href={
135+
"data:text/json," +
136+
encodeURIComponent(JSON.stringify(this.props.storageList))
137+
}
131138
className="btn"
132139
download="backup.json"
133140
>

0 commit comments

Comments
 (0)