import type { SocialNetwork , SocialNetworkWorker } from '../../social-network/types' ; const origins = [ 'https://www.facebook.com/*' , 'https://m.facebook.com/*' , 'https://facebook.com/*' ] ; export const FACEBOOK_ID = 'facebook.com' ; export const facebookBase = { networkIdentifier : FACEBOOK_ID , name : 'facebook' , declarativePermissions : { origins } , shouldActivate ( location ) { return location . hostname . endsWith ( FACEBOOK_ID ) ; } , } ; export function isFacebook ( ui ) { return ui . networkIdentifier === FACEBOOK_ID ; } export const facebookWorkerBase = { ... facebookBase , gunNetworkHint : '' , } ;