change(ui) - config changes
This commit is contained in:
parent
2ed5cac986
commit
a7bfbc8ff7
5 changed files with 7 additions and 6 deletions
|
|
@ -14,7 +14,7 @@ class Announcements extends React.Component {
|
|||
|
||||
navigateToUrl = url => {
|
||||
if (url) {
|
||||
if (url.startsWith(window.env.ORIGIN)) {
|
||||
if (url.startsWith(window.env.ORIGIN || window.location.origin)) {
|
||||
const { history } = this.props;
|
||||
var path = new URL(url).pathname
|
||||
if (path.includes('/metrics')) {
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ export default class Integrations extends React.PureComponent {
|
|||
title="Github"
|
||||
description="Easily share issues on GitHub directly from any session replay."
|
||||
icon="integrations/github"
|
||||
url={ `https://auth.openreplay.com/oauth/login?provider=github&back_url=${window.env.ORIGIN}` }
|
||||
url={ `https://auth.openreplay.com/oauth/login?provider=github&back_url=${window.env.ORIGIN || window.location.origin}` }
|
||||
onClick={ () => this.showIntegrationConfig(GITHUB) }
|
||||
integrated={ issuesIntegrated }
|
||||
deleteHandler={issuesIntegrated ? () => this.deleteHandler('issues') : null}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class Discover extends React.PureComponent {
|
|||
|
||||
onClick = task => {
|
||||
if (task.URL) {
|
||||
if (task.URL.includes(window.env.ORIGIN)) {
|
||||
if (task.URL.includes(window.env.ORIGIN || window.location.origin)) {
|
||||
const { history } = this.props;
|
||||
var path = new URL(task.URL).pathname
|
||||
history.push(path)
|
||||
|
|
|
|||
1
frontend/package-lock.json
generated
1
frontend/package-lock.json
generated
|
|
@ -7,6 +7,7 @@
|
|||
"": {
|
||||
"name": "openreplay",
|
||||
"version": "1.3.6",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@sentry/browser": "^5.21.1",
|
||||
"@svg-maps/world": "^1.0.1",
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
"version": "1.3.6",
|
||||
"scripts": {
|
||||
"start": "webpack serve",
|
||||
"build": "npm run gen:icons && rm -rf public && webpack",
|
||||
"build": "npm run gen:icons && npm run gen:colors && rm -rf public && webpack",
|
||||
"upload:minio": "node ./scripts/upload-minio.js",
|
||||
"deploy:minio": "npm run build:minio && npm run upload:minio",
|
||||
"lint": "eslint --fix app; exit 0",
|
||||
"gen:css-types": "tcm app/components && tcm app/player",
|
||||
"gen:constants": "node ./scripts/constants.js",
|
||||
"gen:icons": "node ./scripts/icons.ts",
|
||||
"gen:colors": "node ./scripts/colors.js",
|
||||
"storybook": "start-storybook",
|
||||
"flow": "flow"
|
||||
"flow": "flow",
|
||||
"postinstall": "npm run gen:icons && npm run gen:colors"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/browser": "^5.21.1",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue