* Returns path for provided js filename * @param {string} publisher js filename * @return {string} Path to provided filename.
(publisher)
| 49 | * @return {string} Path to provided filename. |
| 50 | */ |
| 51 | function getResourceFilePath(publisher) { |
| 52 | const publisherStr = publisher.replace(/[^a-zA-Z0-9]/g, ''); |
| 53 | return `${publisherStr[0]}/${publisherStr[1]}`; |
| 54 | } |
| 55 | |
| 56 | const url = |
| 57 | `https://jsc.mgid.com/${getResourceFilePath(data.publisher)}/` + |