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:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user