const injectRemoteScript = function injectRemoteScript(src) {
  if (window.document.querySelector(`script[src="${src}"]`)) return;
  const body = window.document.getElementsByTagName('body')[0];
  const scriptElement = window.document.createElement('script');
  scriptElement.setAttribute('src', src);
  body.appendChild(scriptElement);
};
export default injectRemoteScript;