fix redeem link

This commit is contained in:
dohsimpson
2025-01-27 18:43:15 -05:00
parent b62cf77ba8
commit 7065d5694b
4 changed files with 32 additions and 1 deletions

View File

@@ -286,4 +286,14 @@ export const playSound = (soundPath: string = '/sounds/timer-end.wav') => {
audio.play().catch(error => {
console.error('Error playing sound:', error)
})
}
// open a new window (client side only, must be run in browser)
export const openWindow = (url: string): boolean => {
const newWindow = window.open(url, '_blank')
if (newWindow === null) {
// Popup was blocked
return false
}
return true
}