Skip to content

Commit

Permalink
Fix pulsoid account linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Oct 30, 2024
1 parent 2d51ca0 commit f2b1ae8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 8 additions & 5 deletions src-ui/app/services/deep-link.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ export class DeepLinkService {
async init() {
await listen<string>('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);
Expand All @@ -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}`);
}
});
}
Expand All @@ -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]) {
Expand All @@ -60,6 +59,8 @@ export class DeepLinkService {
url.hash.substring(1)
);
break;
default:
await warn(`[DeepLinkService] Couldn't handle deep link type: ${route[0]}`);
}
}

Expand Down Expand Up @@ -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}`);
}
}
}

0 comments on commit f2b1ae8

Please sign in to comment.