redux-first-router
Version:
think of your app in states not routes (and, yes, while keeping the address bar in sync)
19 lines (14 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (doc, title) {
if (typeof title === 'string' && doc.title !== title) {
return doc.title = title;
}
return null;
};
var getDocument = exports.getDocument = function getDocument() {
var isSSRTest = process.env.NODE_ENV === 'test' && typeof window !== 'undefined' && window.isSSR;
return typeof document !== 'undefined' && !isSSRTest ? document : {};
};