* Returns path for provided js filename * @param {string} publisher js filename * @return {string} Path to provided filename.
(publisher)
| 65 | * @return {string} Path to provided filename. |
| 66 | */ |
| 67 | function getResourceFilePath(publisher) { |
| 68 | const publisherStr = publisher.replace(/[^a-zA-Z0-9]/g, ''); |
| 69 | return `${publisherStr[0]}/${publisherStr[1]}`; |
| 70 | } |
| 71 | |
| 72 | const url = |
| 73 | `https://jsc.adskeeper.com/${getResourceFilePath(data.publisher)}/` + |