* @param {!Window} global * @param {!Object} data * @return {?Node}
(global, data)
| 50 | * @return {?Node} |
| 51 | */ |
| 52 | function getInitAdScript(global, data) { |
| 53 | const scriptElement = global.document.createElement('script'); |
| 54 | const initScript = global.document.createTextNode( |
| 55 | `var sabaVisionWebsiteID = "${data.websiteId}"; var sabaVisionWebsitePage = "ALL"` |
| 56 | ); |
| 57 | |
| 58 | scriptElement.appendChild(initScript); |
| 59 | |
| 60 | return scriptElement; |
| 61 | } |