Skip to content

Commit

Permalink
Merge pull request #22 from fourplusone/master
Browse files Browse the repository at this point in the history
If the bookmarklet is used on https: site w/o jquery, browser complains about unsecure content being injected
  • Loading branch information
hukl committed Nov 20, 2011
2 parents 929bddb + e7703cc commit 480cfc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/bookmarklet_beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ if (typeof jQuery == 'undefined') {
var jQ = document.createElement('script');
jQ.type = 'text/javascript';
jQ.onload=runthis;
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
var protocol = (location.protocol == 'https:') ? 'https:' : 'http:';
jQ.src = protocol + '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.body.appendChild(jQ);
} else {
runthis();
Expand Down
3 changes: 2 additions & 1 deletion public/bookmarklet_development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ if (typeof jQuery == 'undefined') {
var jQ = document.createElement('script');
jQ.type = 'text/javascript';
jQ.onload=runthis;
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
var protocol = (location.protocol == 'https:') ? 'https:' : 'http:';
jQ.src = protocol + '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.body.appendChild(jQ);
} else {
runthis();
Expand Down
3 changes: 2 additions & 1 deletion public/bookmarklet_production.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ if (typeof jQuery == 'undefined') {
var jQ = document.createElement('script');
jQ.type = 'text/javascript';
jQ.onload=runthis;
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
var protocol = (location.protocol == 'https:') ? 'https:' : 'http:';
jQ.src = protocol + '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.body.appendChild(jQ);
} else {
runthis();
Expand Down

0 comments on commit 480cfc7

Please sign in to comment.