From 5b637d585351021df55f1c51952205680ce56968 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 3 Nov 2017 11:32:00 +0800 Subject: [PATCH] refactor: rename inBody to body --- README.md | 8 ++++---- src/client/updaters/updateTags.js | 2 +- src/server/generators/tagGenerator.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 77a37f2..e3a8e93 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ app.get('*', (req, res) => { const context = { url: req.url } renderer.renderToString(context, (error, html) => { if (error) return res.send(error.stack) - const bodyOpt = { inBody: true } + const bodyOpt = { body: true } const { title, htmlAttrs, bodyAttrs, link, style, script, noscript, meta } = context.meta.inject() @@ -230,7 +230,7 @@ app.get('*', (req, res) => { const context = { url: req.url } const renderStream = renderer.renderToStream(context) renderStream.once('data', () => { - const bodyOpt = { inBody: true } + const bodyOpt = { body: true } const { title, htmlAttrs, bodyAttrs, link, style, script, noscript, meta } = context.meta.inject() @@ -501,13 +501,13 @@ Each item in the array maps to a newly-created ` ``` -If your browser doesn't support `defer` or any other reason, you want to put `