diff --git a/public/index.html b/public/index.html index 0e0c730..5d50505 100644 --- a/public/index.html +++ b/public/index.html @@ -84,7 +84,7 @@ - + @@ -97,6 +97,9 @@ window.console && window.console.log && (console.log("Think big, train fast, learn deep. See https://github.com/yanglbme")) + setTimeout(() => { + document.body.addEventListener('load', prettyPrint()) + }, 2000) diff --git a/src/App.vue b/src/App.vue index b99e3bd..b102a61 100644 --- a/src/App.vue +++ b/src/App.vue @@ -135,7 +135,6 @@ import { } from './scripts/util' import DEFAULT_CONTENT from './scripts/default-content' import DEFAULT_CSS_CONTENT from './scripts/themes/default-theme-css' -// import { prettyPrint } from 'prettify' require('codemirror/mode/javascript/javascript') export default { data () { @@ -485,11 +484,6 @@ export default { type: 'success' }) } - }, - updated () { - this.$nextTick(() => { - // prettyPrint() - }) } }