mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-09-08 19:35:10 -05:00
Fix opening NookLink deep links
This commit is contained in:
@@ -14,6 +14,13 @@ if (webservice.id === NOOKLINK_WEBSERVICE_ID) {
|
||||
const url = new URL(location.href);
|
||||
const initurl = new URL(webserviceurl);
|
||||
|
||||
for (const key of [...url.searchParams.keys()]) {
|
||||
if (!initurl.searchParams.has(key)) {
|
||||
// Allow any extra query string parameters for deep links
|
||||
url.searchParams.delete(key);
|
||||
}
|
||||
}
|
||||
|
||||
debug('URL', url, initurl);
|
||||
|
||||
if (url.origin === initurl.origin && url.href !== initurl.href) {
|
||||
|
||||
Reference in New Issue
Block a user