Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'v1.0.1' into pr/petitcl/75
Browse files Browse the repository at this point in the history
  • Loading branch information
coltoneshaw committed Nov 2, 2021
2 parents 2a04d06 + 2926795 commit e3441bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/helperFunctions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { parseISO, differenceInMilliseconds } from 'date-fns'


const isElectron = window.mainPreload
const isElectron = () => window.mainPreload
/**
*
* @param jsonString the json string to be validated
Expand Down Expand Up @@ -132,7 +132,7 @@ function getDatesBetweenTwoDates(startDate: string, endDate: string) {
}

const openLink = (url: string) => {
if (isElectron) return window.ThreeCPM.Repository.General.openLink(url);
if (isElectron()) return window.ThreeCPM.Repository.General.openLink(url);
return window.open(url)
}

Expand Down

0 comments on commit e3441bc

Please sign in to comment.