SHARE
TWEET

Untitled

a guest Aug 26th, 2019 69 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top