mirror of
https://github.com/OpenSTDL/CrunchyDL.git
synced 2024-10-18 20:25:10 +02:00
8 lines
261 B
TypeScript
8 lines
261 B
TypeScript
const isProduction = process.env.NODE_ENV !== 'development'
|
|
|
|
export function openNewWindow(urlprod: string, urldev: string, w: string) {
|
|
const newWindow = window.open(isProduction ? urlprod : urldev, '_blank', w)
|
|
if (newWindow) {
|
|
newWindow.focus()
|
|
}
|
|
} |