feat: implement instant download functionality with static link (#16)
This commit is contained in:
@@ -4,3 +4,11 @@ import { twMerge } from "tailwind-merge"
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
export function downloadAndNavigate() {
|
||||
// Open download URL in a new tab/window (this will trigger the download)
|
||||
window.open('https://github.com/owengretzinger/meetingnotes/releases/latest/download/Meetingnotes.dmg', '_blank')
|
||||
|
||||
// Navigate to download page
|
||||
window.location.href = '/download'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user