From f2b1ae8b8a684dbbcd30587f42c66ae750e83b65 Mon Sep 17 00:00:00 2001 From: Raphiiko Date: Wed, 30 Oct 2024 12:09:59 +0100 Subject: [PATCH] Fix pulsoid account linking --- CHANGELOG.md | 6 ++++++ src-ui/app/services/deep-link.service.ts | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e58799..225f779c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + - GPU acceleration for SteamVR overlays (Community contribution by [BenjaminZehowlt](https://github.com/BenjaminZehowlt)) +### Fixed + +- Linking your Pulsoid account through the Pulsoid integration no longer functioning. + ## [1.14.4] ### Fixed diff --git a/src-ui/app/services/deep-link.service.ts b/src-ui/app/services/deep-link.service.ts index f27434a5..7493cf0a 100644 --- a/src-ui/app/services/deep-link.service.ts +++ b/src-ui/app/services/deep-link.service.ts @@ -12,10 +12,9 @@ export class DeepLinkService { async init() { await listen('onDeepLinkCall', async (event) => { let url: URL | null = null; - let payload = event.payload; - info('[DEEPLINK_DEBUG] RECEIVED DEEP LINK CALL: ' + payload); + info(`[DeepLinkService] Received deep link call: ${event.payload}`); try { - url = new URL(payload); + url = new URL(event.payload); info('[DEEPLINK_DEBUG] PARSED URL: ' + url.toString()); } catch (e) { info('[DEEPLINK_DEBUG] FAILED TO PARSE URL: ' + e); @@ -26,7 +25,7 @@ export class DeepLinkService { await this.handleDeepLinkCall(url); } catch (e) { info('[DEEPLINK_DEBUG] FAILED TO HANDLE DEEP LINK CALL: ' + e); - await warn(`[DeepLinkService] Failed to handle deep link call: ${e}`); + await warn(`[DeepLinkService] Failed to handle deep link call for URL: ${event.payload}`); } }); } @@ -41,7 +40,7 @@ export class DeepLinkService { pathname = pathname.substring(1); } info(`[DEEPLINK_DEBUG] handleDeepLinkCall 2.2 ${pathname}`); - const route = pathname.split('/'); + const route = [url.hostname, ...pathname.split('/')]; info(`[DEEPLINK_DEBUG] handleDeepLinkCall 3 ${route}`); info(`[DEEPLINK_DEBUG] handleDeepLinkCall 4 ${route[0]}`); switch (route[0]) { @@ -60,6 +59,8 @@ export class DeepLinkService { url.hash.substring(1) ); break; + default: + await warn(`[DeepLinkService] Couldn't handle deep link type: ${route[0]}`); } } @@ -102,6 +103,8 @@ export class DeepLinkService { await this.pulsoid.handleDeepLink(path, params, fragmentParams); info(`[DEEPLINK_DEBUG] handleDeepLinkByIntegration 7`); break; + default: + await warn(`[DeepLinkService] Couldn't handle deep link for integration: ${integration}`); } } }