ReviewOS

also looking at this

craft-native/craft

fix(ios): hand the page the answers native was already sending

#222
Merged glennmichael123 wants to merge fix/ios-unanswered-posts into main
18 files +597 -164
packages/svelte/src/actions/haptic.tsmodified+8-1
Changes to packages/svelte/src/actions/haptic.ts
@@ -5,7 +5,14 @@ export function haptic(node: HTMLElement, type: string = 'selection') {
55 const handleClick = async () => {
66 const _$craft = get(craft);
77 if (!_$craft) return;
8 await _$craft.haptic(type);
8 try {
9 await _$craft.haptic(type);
10 }
11 catch (error) {
12 // Feedback: an app built with haptics off plays nothing on click, rather
13 // than an unhandled rejection. Any other failure still surfaces.
14 if ((error as { code?: string } | null)?.code !== 'CAPABILITY_DISABLED') throw error;
15 }
916 };
1017
1118 node.addEventListener('click', handleClick);