Skip to content

Commit 43f5f05

Browse files
authored
Merge pull request microsoft#337 from B4PJS/patch-1
Replacing inline styles
2 parents c586a5e + 2c09f28 commit 43f5f05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/embed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ export abstract class Embed {
533533
if(!this.iframe) {
534534
var iframeContent = document.createElement("iframe");
535535
var embedUrl = this.config.uniqueId ? utils.addParamToUrl(this.config.embedUrl, 'uid', this.config.uniqueId) : this.config.embedUrl;
536-
iframeContent.setAttribute("style", "width:100%;height:100%;");
536+
iframeContent.style.width = '100%';
537+
iframeContent.style.height = '100%';
537538
iframeContent.setAttribute("src", embedUrl);
538539
iframeContent.setAttribute("scrolling", "no");
539540
iframeContent.setAttribute("allowfullscreen", "true");

0 commit comments

Comments
 (0)