Skip to content

Commit

Permalink
Merge pull request #9 from privacybydesign/firefox-fix
Browse files Browse the repository at this point in the history
Fix: remove invalid fallback URL to solve issues on Firefox for Android
  • Loading branch information
ivard authored Jun 14, 2021
2 parents f09e40b + e15c016 commit 09cf96b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/keyshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ $.getScript("./config.js", function() {
if (userAgent === "Android") {
// Universal links are not stable in Android webviews and custom tabs, so always use intent links.
let intent = `Intent;package=org.irmacard.cardemu;scheme=irma;l.timestamp=${Date.now()}`;
let fallback = `S.browser_fallback_url=${encodeURIComponent(universalLink)}`;
returnButton.attr("href", `intent://#${intent};${fallback};end`);
returnButton.attr("href", `intent://#${intent};end`);
} else {
returnButton.attr("href", universalLink);
}
Expand Down

0 comments on commit 09cf96b

Please sign in to comment.