Skip to content

Commit

Permalink
[#793] webpage plugin no longer needs http://
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed Oct 29, 2011
1 parent 9b39828 commit 0b68d98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/webpage/popcorn.webpage.html
Expand Up @@ -14,7 +14,7 @@
id: "webpages-a",
start: 0,
end: 5,
src: "http://webmademovies.org/",
src: "//webmademovies.org/",
target: "webpagediv"
})
.webpage({
Expand Down
3 changes: 3 additions & 0 deletions plugins/webpage/popcorn.webpage.js
Expand Up @@ -62,6 +62,9 @@

var target = document.getElementById( options.target );

// make src an iframe acceptable string
options.src = options.src.replace( /^(https?:)?(\/\/)?/, "//" );

// make an iframe
options._iframe = document.createElement( "iframe" );
options._iframe.setAttribute( "width", "100%" );
Expand Down
2 changes: 1 addition & 1 deletion plugins/webpage/popcorn.webpage.unit.js
Expand Up @@ -26,7 +26,7 @@ test( "Popcorn Webpage Plugin", function() {
id: "webpages-a",
start: 0,
end: 1,
src: "http://webmademovies.org",
src: "webmademovies.org",
target: "webpagediv"
})
.webpage({
Expand Down

0 comments on commit 0b68d98

Please sign in to comment.