Skip to content

Commit

Permalink
Merge pull request seandrickson#13 from tmaex/issue-12
Browse files Browse the repository at this point in the history
one possible solution to seandrickson#12
  • Loading branch information
seandrickson authored Feb 1, 2022
2 parents 47d4942 + 518bbac commit a201991
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions seans-qrcode/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ function sean_add_qr_popup(el) {

function sean_toggle_qr(id) {
<?php if( SEAN_QR_ADD_TO_SHAREBOX ): ?>
var shorturl = $('#keyword-'+id+' a:first').attr('href').replace(/^http(s)?:\/\//, "//");
$('#sean_qr_img').attr( 'src', shorturl + '.qr' );
var shorturl = $('#keyword-'+id+' a:first').attr('href');
if (shorturl != undefined) {
$('#sean_qr_img').attr( 'src', shorturl.replace(/^http(s)?:\/\//, "//") + '.qr' );
}
<?php endif; ?>
}

Expand Down

0 comments on commit a201991

Please sign in to comment.