Skip to content

Commit

Permalink
fix hiding the share menu button when the website is loaded in an ifr…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
amitmerchant1990 committed Dec 16, 2024
1 parent 412d59f commit 4ebc601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ there's a small donate button in the About section.
}
});

if (navigator.share && navigator.canShare) {
if (navigator.share && window.self === window.top) {
$('#shareNotesContainer').show();
}

Expand Down

0 comments on commit 4ebc601

Please sign in to comment.