diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 12:53:56 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 12:53:56 +0200 |
| commit | 88f7735483779d7b90e03faff00203ac0d77ec46 (patch) | |
| tree | 04c9261082556da4400a85cbd6d838cdeb6f1079 /js/vendor | |
| parent | 1d6e01a44ea9f23b2a7fcc63de12c132e74fc0bb (diff) | |
Diffstat (limited to 'js/vendor')
| -rw-r--r-- | js/vendor/util.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/vendor/util.js b/js/vendor/util.js index b1b39e9..8ccc135 100644 --- a/js/vendor/util.js +++ b/js/vendor/util.js @@ -93,7 +93,8 @@ function has3d(){ // Add it to the body to get the computed style // Sandbox it inside an iframe to avoid Android Browser quirks - $iframe.appendTo('body').contents().find('body').append( el ); + // $iframe.appendTo('body').contents().find('body').append( el ); + $('body').append(el) for (t in transforms) { if (el.style[t] !== undefined) { @@ -102,7 +103,7 @@ function has3d(){ } } - $iframe.remove(); + $(el).remove(); return has3d !== undefined && has3d.length > 0 && has3d !== "none"; } |
