Untitled diff

Creato Il diff non scade mai
I due testi sono identici
Non c'è alcuna differenza tra questi due testi
0 rimozioni
24 linee
0 aggiunte
24 linee
"use strict";
"use strict";


var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");


var _reactHelmet = _interopRequireDefault(require("react-helmet"));
var _reactHelmet = _interopRequireDefault(require("react-helmet"));


exports.onRenderBody = function (_ref, pluginOptions) {
exports.onRenderBody = function (_ref, pluginOptions) {
var setHeadComponents = _ref.setHeadComponents,
var setHeadComponents = _ref.setHeadComponents,
setHtmlAttributes = _ref.setHtmlAttributes,
setHtmlAttributes = _ref.setHtmlAttributes,
setBodyAttributes = _ref.setBodyAttributes;
setBodyAttributes = _ref.setBodyAttributes;


var helmet = _reactHelmet.default.renderStatic(); // These action functions were added partway through the Gatsby 1.x cycle.
var helmet = _reactHelmet.default.renderStatic(); // These action functions were added partway through the Gatsby 1.x cycle.




if (setHtmlAttributes) {
if (setHtmlAttributes) {
setHtmlAttributes(helmet.htmlAttributes.toComponent());
setHtmlAttributes(helmet.htmlAttributes.toComponent());
}
}


if (setBodyAttributes) {
if (setBodyAttributes) {
setBodyAttributes(helmet.bodyAttributes.toComponent());
setBodyAttributes(helmet.bodyAttributes.toComponent());
}
}


setHeadComponents([helmet.title.toComponent(), helmet.link.toComponent(), helmet.meta.toComponent(), helmet.noscript.toComponent(), helmet.script.toComponent(), helmet.style.toComponent()]);
setHeadComponents([helmet.title.toComponent(), helmet.link.toComponent(), helmet.meta.toComponent(), helmet.noscript.toComponent(), helmet.script.toComponent(), helmet.style.toComponent()]);
};
};