API Add css class to assist with bootstrapping entwine sections

This commit is contained in:
Damian Mooyman 2016-12-12 18:06:14 +13:00
parent 2ec664d4c2
commit 88b4ae65cc
2 changed files with 5 additions and 1 deletions

View File

@ -2162,7 +2162,7 @@ var e={},t=(0,l.combineReducers)(g["default"].getAll()),n=[c["default"]],i=h["de
var p=o(l.createStore),m=p(t,e)
m.dispatch(y.setConfig(h["default"].getAll())),window.ss=window.ss||{},window.ss.store=m
var v=new s["default"](m)
v.start(window.location.pathname)}var a=n(204),s=r(a),l=n(108),u=n(226),c=r(u),d=n(110),f=n(225),p=n(146),h=r(p),m=n(227),g=r(m),v=n(228),y=i(v),b=n(230),_=r(b),w=n(231),C=r(w),T=n(232),E=r(T),P=n(233),O=r(P),S=n(235),k=r(S),j=n(236),x=r(j),R=n(252),I=r(R),A=n(10),D=r(A)
v.start(window.location.pathname),window.jQuery("body").addClass("react-boot")}var a=n(204),s=r(a),l=n(108),u=n(226),c=r(u),d=n(110),f=n(225),p=n(146),h=r(p),m=n(227),g=r(m),v=n(228),y=i(v),b=n(230),_=r(b),w=n(231),C=r(w),T=n(232),E=r(T),P=n(233),O=r(P),S=n(235),k=r(S),j=n(236),x=r(j),R=n(252),I=r(R),A=n(10),D=r(A)
D["default"].polyfill(),window.onload=o},function(e,t,n){"use strict"

View File

@ -68,6 +68,10 @@ function appBoot() {
// Bootstrap routing
const routes = new BootRoutes(store);
routes.start(window.location.pathname);
// @TODO - Remove once we remove entwine
// Enable top-level css selectors for react-dependant entwine sections
window.jQuery('body').addClass('react-boot');
}
window.onload = appBoot;