import type { SocialNetwork , SocialNetworkWorker } from '../../social-network/types' ; const id = 'twitter.com' ; const origins = [ 'https://mobile.twitter.com/*' , 'https://twitter.com/*' ] ; export const twitterBase = { networkIdentifier : id , name : 'twitter' , declarativePermissions : { origins } , shouldActivate ( location ) { return location . hostname . endsWith ( 'twitter.com' ) ; } , } ; export function isTwitter ( ui ) { return ui . networkIdentifier === id ; } export const twitterWorkerBase = { ... twitterBase , gunNetworkHint : 'twitter-' , } ;