fix crap code

This commit is contained in:
Hans Pagel
2020-12-01 17:33:20 +01:00
parent 5b31ea21f5
commit 74d0de53dc

View File

@@ -11,7 +11,7 @@ export default function (Vue, { head }) {
head.htmlAttrs = { 'data-theme': 'dark' } head.htmlAttrs = { 'data-theme': 'dark' }
// fix docsearch // fix docsearch
if (window && !window.process) { if (typeof window === 'object' && !window.process) {
window.process = { window.process = {
env: { env: {
NODE_ENV: 'production', NODE_ENV: 'production',