fix crap code
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user