Skip to content

Commit 7df1ca0

Browse files
committed
chore(config): reset image hosting to custom github instead of default github hosting
1 parent 1413b82 commit 7df1ca0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/CodemirrorEditor/UploadImgDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function beforeImageUpload(file: File) {
445445
}
446446
// check image host
447447
let imgHost = localStorage.getItem(`imgHost`)
448-
imgHost = imgHost || `default`
448+
imgHost = imgHost || `github`
449449
localStorage.setItem(`imgHost`, imgHost)
450450
451451
const config = localStorage.getItem(`${imgHost}Config`)

src/utils/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ async function formCustomUpload(content: string, file: File) {
638638
export function fileUpload(content: string, file: File) {
639639
const imgHost = localStorage.getItem(`imgHost`)
640640
if (!imgHost) {
641-
localStorage.setItem(`imgHost`, `default`)
641+
localStorage.setItem(`imgHost`, `github`)
642642
}
643643
switch (imgHost) {
644644
case `local`:

src/views/CodemirrorEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function beforeUpload(file: File) {
157157
}
158158
159159
// check image host
160-
const imgHost = localStorage.getItem(`imgHost`) || `default`
160+
const imgHost = localStorage.getItem(`imgHost`) || `github`
161161
localStorage.setItem(`imgHost`, imgHost)
162162
163163
const config = localStorage.getItem(`${imgHost}Config`)

0 commit comments

Comments
 (0)