diff --git a/src/open/clients/Element.js b/src/open/clients/Element.js index b9a4b1d..a3d3830 100644 --- a/src/open/clients/Element.js +++ b/src/open/clients/Element.js @@ -88,4 +88,9 @@ export class Element { canInterceptMatrixToLinks(platform) { return platform === Platform.Android; } + + getPreferredWebInstance(link) { + const idx = trustedWebInstances.indexOf(link.webInstances[this.id]) + return idx === -1 ? undefined : trustedWebInstances[idx]; + } } diff --git a/src/open/clients/Fractal.js b/src/open/clients/Fractal.js index 4c860ee..2f6e856 100644 --- a/src/open/clients/Fractal.js +++ b/src/open/clients/Fractal.js @@ -48,4 +48,6 @@ export class Fractal { return [new FlathubLink("org.gnome.Fractal")]; } } + + getPreferredWebInstance(link) {} } diff --git a/src/open/clients/Nheko.js b/src/open/clients/Nheko.js index 0aa35ad..fe25f34 100644 --- a/src/open/clients/Nheko.js +++ b/src/open/clients/Nheko.js @@ -50,4 +50,6 @@ export class Nheko { return [new FlathubLink("io.github.NhekoReborn.Nheko")]; } } + + getPreferredWebInstance(link) {} } diff --git a/src/open/clients/Quaternion.js b/src/open/clients/Quaternion.js index ce6a184..0240821 100644 --- a/src/open/clients/Quaternion.js +++ b/src/open/clients/Quaternion.js @@ -47,4 +47,6 @@ export class Quaternion { return [new FlathubLink("com.github.quaternion")]; } } + + getPreferredWebInstance(link) {} } diff --git a/src/open/clients/Tensor.js b/src/open/clients/Tensor.js index ce22116..d85ef9b 100644 --- a/src/open/clients/Tensor.js +++ b/src/open/clients/Tensor.js @@ -47,4 +47,6 @@ export class Tensor { return [new FDroidLink("io.davidar.tensor")]; } } + + getPreferredWebInstance(link) {} } diff --git a/src/open/clients/Weechat.js b/src/open/clients/Weechat.js index 49ceb7a..e8f6158 100644 --- a/src/open/clients/Weechat.js +++ b/src/open/clients/Weechat.js @@ -46,4 +46,6 @@ export class Weechat { } getInstallLinks(platform) {} + + getPreferredWebInstance(link) {} }