mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Review : fixes
This commit is contained in:
parent
a87b09908d
commit
894486fba6
@ -23,7 +23,9 @@
|
|||||||
var displayFrame = function (iframe) {
|
var displayFrame = function (iframe) {
|
||||||
var div=document.createElement("div");
|
var div=document.createElement("div");
|
||||||
div.innerHTML = iframe.contentWindow.document.body.innerHTML;
|
div.innerHTML = iframe.contentWindow.document.body.innerHTML;
|
||||||
if (div.children.length == 1) div = div.children[0];
|
if (div.children.length == 1) {
|
||||||
|
div = div.children[0];
|
||||||
|
}
|
||||||
iframe.parentNode.replaceChild(div, iframe);
|
iframe.parentNode.replaceChild(div, iframe);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -43,7 +45,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve iFrames with a data-attribute data-iframe-loader
|
* Retrieve iFrames with a data-attribute data-iframe-loader
|
||||||
* @return {[type]} [description]
|
* Converts the nodeList to an array for easier manipulation
|
||||||
|
* @return {Array} array of iframe elements
|
||||||
*/
|
*/
|
||||||
var getLoaderFrames = function () {
|
var getLoaderFrames = function () {
|
||||||
var iframes = document.querySelectorAll("[data-iframe-loader]");
|
var iframes = document.querySelectorAll("[data-iframe-loader]");
|
||||||
|
Loading…
Reference in New Issue
Block a user