Skip to content

Commit 2b0275b

Browse files
committed
chore: bump version to 0.0.30
1 parent 442c3e8 commit 2b0275b

7 files changed

Lines changed: 28 additions & 12 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kirapilot-app",
33
"private": true,
4-
"version": "0.0.29",
4+
"version": "0.0.30",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kirapilot-app"
3-
version = "0.0.29"
3+
version = "0.0.30"
44
description = "Navigate your day with precision, powered by intelligent AI assistance!"
55
authors = ["Viet-Anh Nguyen (@vietanhdev)"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "KiraPilot",
4-
"version": "0.0.29",
4+
"version": "0.0.30",
55
"identifier": "com.vietanhdev.kirapilot",
66
"build": {
77
"beforeDevCommand": "npm run dev",

src/components/planning/TaskCard.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,17 @@ export function TaskCard({
172172
// Simple success sound (respects user preference)
173173
if (preferences.soundSettings.completionSound) {
174174
try {
175-
// @ts-ignore - webkit audio context fallback
176-
const audioContext = new (window.AudioContext ||
177-
window.webkitAudioContext)();
175+
// Handle webkit audio context fallback properly
176+
const AudioContextClass =
177+
window.AudioContext ||
178+
(window as Window & { webkitAudioContext?: typeof AudioContext })
179+
.webkitAudioContext;
180+
181+
if (!AudioContextClass) {
182+
throw new Error('AudioContext not supported');
183+
}
184+
185+
const audioContext = new AudioContextClass();
178186
const oscillator = audioContext.createOscillator();
179187
const gainNode = audioContext.createGain();
180188

src/components/settings/SoundSettings.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,17 @@ export const SoundSettings: React.FC<SoundSettingsProps> = ({
3232
}
3333

3434
try {
35-
// @ts-ignore - webkit audio context fallback
36-
const audioContext = new (window.AudioContext ||
37-
window.webkitAudioContext)();
35+
// Handle webkit audio context fallback properly
36+
const AudioContextClass =
37+
window.AudioContext ||
38+
(window as Window & { webkitAudioContext?: typeof AudioContext })
39+
.webkitAudioContext;
40+
41+
if (!AudioContextClass) {
42+
throw new Error('AudioContext not supported');
43+
}
44+
45+
const audioContext = new AudioContextClass();
3846
const oscillator = audioContext.createOscillator();
3947
const gainNode = audioContext.createGain();
4048

0 commit comments

Comments
 (0)