File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,23 @@ function parseResponseWithRedirects(url, parser) {
81
81
82
82
return Promise . all ( [
83
83
// ecommerce
84
- parseResponse ( '/.well-known/assetlinks.json' ) ,
84
+ parseResponse ( '/.well-known/assetlinks.json' , r => {
85
+ return r . json ( ) . then ( data => {
86
+ let hasDeepLinking = false ;
87
+ let hasCredentialSharing = false ;
88
+ data . forEach ( statement => {
89
+ if ( statement . relation === 'delegate_permission/common.handle_all_urls' ) {
90
+ hasDeepLinking = true ;
91
+ } else if ( statement . relation === 'delegate_permission/common.get_login_creds' ) {
92
+ hasCredentialSharing = true ;
93
+ }
94
+ } ) ;
95
+ return {
96
+ deep_linking : hasDeepLinking ,
97
+ credential_sharing : hasCredentialSharing
98
+ } ;
99
+ } ) ;
100
+ } ) ,
85
101
parseResponse ( '/.well-known/apple-app-site-association' ) ,
86
102
// privacy sandbox
87
103
parseResponse ( '/.well-known/related-website-set.json' ) , //Related Website Set
You can’t perform that action at this time.
0 commit comments