Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* some imports */
- import createBrowserHistory from 'history/createBrowserHistory';
- export const browserHistory = createBrowserHistory({basename: window.basename});
- export default class SomePlugin {
- initialize(registry, store) {
- /* some code */
- const channelId = 'someChannelId';
- const teamUrl = 'someTeamUrl'
- browserHistory.push(`${teamUrl}/channels/${channelId}`);
- /* some code */
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement