Skip to content

Commit

Permalink
Adjust turbolinks per the instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Apr 5, 2017
1 parent f0ca4c2 commit 0b577fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/app/bundles/comments/startup/clientRegistration.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ReactOnRails from 'react-on-rails';
import Turbolinks from 'turbolinks';

import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
Expand All @@ -13,6 +14,9 @@ import routerCommentsStore from '../store/routerCommentsStore';
import commentsStore from '../store/commentsStore';
import NavigationBarApp from './NavigationBarApp';

// From docs: https://github.com/turbolinks/turbolinks#installation-using-npm
Turbolinks.start();

// Initizalize all locales for react-intl.
addLocaleData([...en, ...de, ...ja, ...zh]);

Expand Down

0 comments on commit 0b577fe

Please sign in to comment.