Skip to content
Snippets Groups Projects
Commit 28fb6dfe authored by Bruno Windels's avatar Bruno Windels
Browse files

add method to get preferred web instance out of link

this is a preference that can be put in the link
parent 82f16b92
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
}
......@@ -48,4 +48,6 @@ export class Fractal {
return [new FlathubLink("org.gnome.Fractal")];
}
}
getPreferredWebInstance(link) {}
}
......@@ -50,4 +50,6 @@ export class Nheko {
return [new FlathubLink("io.github.NhekoReborn.Nheko")];
}
}
getPreferredWebInstance(link) {}
}
......@@ -47,4 +47,6 @@ export class Quaternion {
return [new FlathubLink("com.github.quaternion")];
}
}
getPreferredWebInstance(link) {}
}
......@@ -47,4 +47,6 @@ export class Tensor {
return [new FDroidLink("io.davidar.tensor")];
}
}
getPreferredWebInstance(link) {}
}
......@@ -46,4 +46,6 @@ export class Weechat {
}
getInstallLinks(platform) {}
getPreferredWebInstance(link) {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment