Skip to content

Commit

Permalink
navigator.share() seems recently implemented but not working on Firef…
Browse files Browse the repository at this point in the history
…ox desktop
  • Loading branch information
dascritch committed Feb 9, 2021
1 parent d806e5f commit 0118905
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/cpu-audio.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cpu-audio.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/30_trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,12 @@ const trigger = {
*/
native_share : function(event) {
let dataset = document.CPU.find_container(event.target).fetch_audiotag_dataset();;
event.preventDefault();
navigator.share({
'title': dataset.title,
'text': dataset.title,
'url': dataset.canonical
});
event.preventDefault();
},

_show_alternate_nav : null,
Expand Down

0 comments on commit 0118905

Please sign in to comment.