mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-28 10:40:52 +02:00
test deploy with renderToString
This commit is contained in:
@@ -12,7 +12,7 @@ var Navigation = React.createClass({
|
||||
var Type = sections[name];
|
||||
var title = Type.getDefaultProps().title;
|
||||
var locale = SectionHeader.locale;
|
||||
if (typeof window !== undefined && window.location.toString().indexOf(locale) === -1) {
|
||||
if (typeof window !== "undefined" && window.location.toString().indexOf(locale) === -1) {
|
||||
locale = '';
|
||||
}
|
||||
var fragmentid = `${locale ? './' + locale + '/': '.'}#${name}`;
|
||||
|
Reference in New Issue
Block a user