Skip to content

Commit d63f565

Browse files
committed
0.1.2 - safari 6 bugfix
1 parent f5a14d2 commit d63f565

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ IFrame.prototype.setHTML = function(opts) {
4040
tempIframe.sandbox = opts.sandboxAttributes.join(' ')
4141
// create a blob for opts.html and set as iframe `src` attribute
4242
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)
4445
tempIframe.src = targetUrl
4546
// generate HTML string
4647
var htmlSrc = tempIframe.outerHTML

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iframe",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "higher level api for creating and using iframes in browsers",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)