Skip to content

Commit 10f648a

Browse files
authored
update actions.js
1 parent 7931644 commit 10f648a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

actions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ else if (action === 'openfile') {
3535
if (type === 'image') {
3636
showImage(fContent)
3737
}
38-
if (type === 'code') {
39-
setCode(fContent)
40-
}
4138
else {
39+
if (location.pathname === 'codeEditor.html') {
40+
setCode(fContent)
41+
}
4242
setContent(fContent)
4343
}
4444
}

0 commit comments

Comments
 (0)