chore: eslint

This commit is contained in:
Pooya Parsa 2017-06-05 13:27:41 +04:30
parent bd54ddd2a7
commit b37c7cbd8d
2 changed files with 21 additions and 19 deletions

View File

@ -5,6 +5,7 @@ import serialize from 'serialize-javascript'
import generateETag from 'etag' import generateETag from 'etag'
import fresh from 'fresh' import fresh from 'fresh'
import { getContext, setAnsiColors, encodeHtml } from './utils' import { getContext, setAnsiColors, encodeHtml } from './utils'
const debug = require('debug')('nuxt:render') const debug = require('debug')('nuxt:render')
// force blue color // force blue color
debug.color = 4 debug.color = 4
@ -168,7 +169,8 @@ export async function renderAndGetWindow (url, opts = {}) {
runScripts: 'dangerously', runScripts: 'dangerously',
beforeParse (window) { beforeParse (window) {
// Mock window.scrollTo // Mock window.scrollTo
window.scrollTo = () => {} window.scrollTo = () => {
}
} }
} }
if (opts.virtualConsole !== false) { if (opts.virtualConsole !== false) {