Skip to content

Commit e800953

Browse files
committed
Use .embed suffix in iframe src attribute. Fixes #581
1 parent 6c965a8 commit e800953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/print.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ embed_notebook <- function(x, width = NULL, height = NULL,
133133

134134
plotly_iframe <- function(url = "", width = NULL, height = NULL) {
135135
sprintf(
136-
'<iframe src="%s" width="%s" height="%s" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>',
136+
'<iframe src="%s.embed" width="%s" height="%s" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>',
137137
url, width %||% "100%", height %||% "400"
138138
)
139139
}

0 commit comments

Comments
 (0)