Skip to content

Commit

Permalink
fix canShare
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Sep 2, 2024
1 parent c8cb0d7 commit 94c9449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/quiz/quiz-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface ShareButtonProps {
}

function ShareButton({ button_ref, parameters, today_name, correct_pattern, total_correct, quiz_kind }: ShareButtonProps) {
const can_share = navigator.canShare({ url: "https://juxtastat.org", text: "test" });
const can_share = navigator.canShare && navigator.canShare({ url: "https://juxtastat.org", text: "test" });
const is_share = isMobile && can_share && !isFirefox;
console.log("ismobile, canshare, isfirefox", isMobile, can_share, isFirefox);

Expand Down

0 comments on commit 94c9449

Please sign in to comment.