import { strings } from './language' ; export function invalidUrlError ( url ) { if ( ! url ) { return strings . errorNoUrl ; } if ( url . toLocaleLowerCase ( ) . substr ( 0 , 4 ) !== 'http' ) { return strings . errorUrlHttp ; } }