forked from cory/tildefriends
Allow an unsized iframe, fix a problem with /view, and minor chat fixes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3374 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -286,8 +286,12 @@ function printStructured(container, data) {
|
||||
node.setAttribute("srcdoc", data.iframe);
|
||||
}
|
||||
node.setAttribute("sandbox", "allow-forms allow-scripts allow-top-navigation allow-same-origin");
|
||||
node.setAttribute("width", data.width || 320);
|
||||
node.setAttribute("height", data.height || 240);
|
||||
if (data.width !== null) {
|
||||
node.setAttribute("width", data.width || 320);
|
||||
}
|
||||
if (data.height !== null) {
|
||||
node.setAttribute("height", data.height || 240);
|
||||
}
|
||||
if (data.name) {
|
||||
node.setAttribute("id", "iframe_" + data.name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user