Skip to content

Commit d1bd4bb

Browse files
committed
fixed the demo bookmarklet #158
1 parent c2f7565 commit d1bd4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function printCode($code, $asHtml = true)
157157
   
158158
<a href="https://github.com/oscarotero/Embed/">Get the source code from Github</a>
159159
&nbsp;&nbsp; - &nbsp;&nbsp;
160-
<a href="javascript:(function(){window.open('http://oscarotero.com/embed2/demo/index.php?url='+document.location)})();">or the bookmarklet</a>
160+
<a href="javascript:(function(){window.open('http://oscarotero.com/embed2/demo/index.php?url='+encodeURIComponent(document.location))})();">or the bookmarklet</a>
161161
</fieldset>
162162
</form>
163163

0 commit comments

Comments
 (0)