File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ IFrame.prototype.setHTML = function(opts) {
40
40
tempIframe . sandbox = opts . sandboxAttributes . join ( ' ' )
41
41
// create a blob for opts.html and set as iframe `src` attribute
42
42
var blob = new Blob ( [ opts . html ] , { type : 'text/html;charset=UTF-8' } )
43
- var targetUrl = URL . createObjectURL ( blob )
43
+ var U = typeof URL !== 'undefined' ? URL : webkitURL
44
+ var targetUrl = U . createObjectURL ( blob )
44
45
tempIframe . src = targetUrl
45
46
// generate HTML string
46
47
var htmlSrc = tempIframe . outerHTML
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " iframe" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 0.1.2 " ,
4
4
"description" : " higher level api for creating and using iframes in browsers" ,
5
5
"repository" : {
6
6
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments