Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* some imports */
  2. import createBrowserHistory from 'history/createBrowserHistory';
  3. export const browserHistory = createBrowserHistory({basename: window.basename});
  4.  
  5. export default class SomePlugin {
  6.     initialize(registry, store) {
  7.             /* some code */
  8.             const channelId = 'someChannelId';
  9.             const teamUrl = 'someTeamUrl'
  10.             browserHistory.push(`${teamUrl}/channels/${channelId}`);
  11.             /* some code */
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement