Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
For testing purposes: Added domain replacement to make tests easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Meza committed Jun 25, 2018
1 parent 755fd71 commit c2d5f87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/go_to_native_app/go_to_native_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default class GoNativeApp extends PureComponent {
let nativeLocation = window.location.href.replace('/vault#', '');
nativeLocation = nativeLocation.replace(/^(http|https)/, 'mattermost');

//***** TESTING PURPOSE - REMOVE BEFORE MERGE ****
nativeLocation = nativeLocation.replace(/\/\/[^/]+/, '//pre-release.mattermost.com');

safeOpenProtocol(nativeLocation,
() => this.setState({protocolUnsupported: true}),
() => setTimeout(redirectWeb, 3000),
Expand Down

0 comments on commit c2d5f87

Please sign in to comment.