add method to get preferred web instance out of link
this is a preference that can be put in the link
This commit is contained in:
parent
82f16b9231
commit
28fb6dfe9d
6 changed files with 15 additions and 0 deletions
|
@ -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) {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue