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

Commit

Permalink
Fixup: fix order of replacement regexp for protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
David Meza committed Jul 8, 2018
1 parent 8b138d2 commit 738049d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/go_to_native_app/go_to_native_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class GoNativeApp extends PureComponent {
const {protocolUnsupported, browserUnsupported} = this.state;

let nativeLocation = window.location.href.replace('/vault#', '');
nativeLocation = nativeLocation.replace(/^(http|https)/, 'mattermost');
nativeLocation = nativeLocation.replace(/^(https|http)/, 'mattermost');

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

0 comments on commit 738049d

Please sign in to comment.