@bloks/browser-transport
Advanced tools
Comparing version 3.2.1-16 to 3.2.1-18
/** | ||
* Proton Browser Transport v3.2.1-16 | ||
* Proton Browser Transport v3.2.1-18 | ||
* https://github.com/protonprotocol/proton-browser-transport | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* Proton Browser Transport v3.2.1-16 | ||
* Proton Browser Transport v3.2.1-18 | ||
* https://github.com/protonprotocol/proton-browser-transport | ||
@@ -750,4 +750,9 @@ * | ||
if (session.metadata.sameDevice) { | ||
const scheme = request.getScheme(); | ||
window.location.href = `${scheme}://link`; | ||
if (session.metadata.launchUrl) { | ||
window.location.href = session.metadata.launchUrl; | ||
} | ||
else if (isAppleHandheld()) { | ||
const scheme = request.getScheme(); | ||
window.location.href = `${scheme}://link`; | ||
} | ||
} | ||
@@ -959,3 +964,3 @@ } | ||
/** Package version. */ | ||
BrowserTransport.version = '3.2.1-16'; // replaced by build script | ||
BrowserTransport.version = '3.2.1-18'; // replaced by build script | ||
function waitForEvent(element, eventName, timeout) { | ||
@@ -962,0 +967,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "@bloks/browser-transport", | ||
"version": "3.2.1-16", | ||
"version": "3.2.1-18", | ||
"description": "Vanilla JS browser transport for Proton Link", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/protonprotocol/proton-browser-transport", |
@@ -477,3 +477,2 @@ import { | ||
this.showDialog({ | ||
@@ -487,4 +486,8 @@ title: 'Pending...', | ||
if (session.metadata.sameDevice) { | ||
const scheme = request.getScheme() | ||
window.location.href = `${scheme}://link` | ||
if (session.metadata.launchUrl) { | ||
window.location.href = session.metadata.launchUrl | ||
} else if (isAppleHandheld()) { | ||
const scheme = request.getScheme() | ||
window.location.href = `${scheme}://link` | ||
} | ||
} | ||
@@ -491,0 +494,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
670743
3887