i am passing url dynamically in following code which is producing error "SyntaxError: Unexpected token ':'because url is dynamically added as https://wizkidtest.daily.co/testcall but when i harcode url as 'https://wizkidtest.daily.co/testcall' it works fine, adding url in string '' makes the difference
let script = this._renderer2.createElement("script");
script.type = `text/javascript`;
script.text = `
{
callFrame = window.DailyIframe.createFrame({
showLeaveButton: true,
iframeStyle: {
position: 'fixed',
width: '100%',
height: '100%'
}
});
callFrame.join({ url: ${this.url} })
}
`;
this._renderer2.appendChild(this._document.body, script);
`${...}`, enclosed by`...console.log(this.url,script.text)to see what is the value ofthis.urlcallFrame.join({ url: "${this.url}" })