提交 df6ca02d 编写于 作者: G guanpengchn

代码块异常处理

上级 ab1d843d
......@@ -2,7 +2,7 @@
"name": "markdown-nice",
"author": "mdnice",
"description": "a markdown editor with the function of style edition",
"version": "1.8.16",
"version": "1.8.17",
"private": false,
"main": "lib/Lib.js",
"module": "lib/Lib.js",
......
......@@ -3,12 +3,10 @@
"name": "Markdown Nice",
"icons": [
{
"src": "https://my-wechat.mdnice.com/mdnice/mdnice%20logo_20191007150129.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "https://my-wechat.mdnice.com/mdnice/mdnice%20logo_20191007150129.png",
"sizes": "512x512",
"type": "image/png"
}
......
......@@ -106,7 +106,12 @@ if (!window.localStorage.getItem(IS_MAC_CODE)) {
// 获取之前选择的主题状态
store.templateNum = parseInt(window.localStorage.getItem(TEMPLATE_NUM), 10);
if (parseInt(window.localStorage.getItem(CODE_NUM), 10) >= CODE_OPTIONS.length) {
window.localStorage.setItem(CODE_NUM, 0);
}
store.codeNum = parseInt(window.localStorage.getItem(CODE_NUM), 10);
store.previewType = window.localStorage.getItem(PREVIEW_TYPE);
store.isSyncScroll = window.localStorage.getItem(IS_SYNC_SCROLL) === "true";
store.isContainImgName = window.localStorage.getItem(IS_CONTAIN_IMG_NAME) === "true";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册