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/vue/src/index.tsmodified+8-1
Changes to packages/vue/src/index.ts
@@ -128,7 +128,14 @@ export function useHaptic() {
128128 console.warn('Craft not ready');
129129 return;
130130 }
131 await craft.value.haptic(type);
131 try {
132 await craft.value.haptic(type);
133 }
134 catch (error) {
135 // Feedback: an app built with haptics off plays nothing, the same as
136 // Craft not being ready. Any other failure still reaches the caller.
137 if ((error as { code?: string } | null)?.code !== 'CAPABILITY_DISABLED') throw error;
138 }
132139 };
133140
134141 return { haptic };