diff --git a/src/pages/playground/app.vue b/src/pages/playground/app.vue index 7ed4518..d45c381 100644 --- a/src/pages/playground/app.vue +++ b/src/pages/playground/app.vue @@ -21,7 +21,7 @@ import CodeEditor from '@/components/code-editor.vue' import Topbar from './views/topbar.vue' import Preview from './views/preview.vue' -import { gzip, ungzip } from '@bytedo/gzip' +import { gzip, gunzip } from '@bytedo/gzip' export default { components: { Topbar, CodeEditor, Preview }, @@ -50,7 +50,7 @@ export default { let code = location.hash.slice(1) if (code) { try { - code = ungzip(code) + code = gunzip(code) code = JSON.parse(code) } catch (e) {} }