Also correctly strip maxAge from initial link

This commit is contained in:
anatoly techtonik 2016-08-30 14:24:08 +03:00 committed by GitHub
parent 9ba76602c1
commit 64c01c3c1f

View File

@ -1292,7 +1292,7 @@ function markupDialog(tr) {
var th = tr.firstElementChild;
var link = th.dataset.link? th.dataset.link: '';
// Remove the ?maxAge parameter from the query string.
trimg.replace(/[\?&]maxAge=\d+$|maxAge=\d+&/, '');
trimg = trimg.replace(/[\?&]maxAge=\d+$|maxAge=\d+&/, '');
copyForm.img.value = trimg;
copyForm.url.value = link;
// Insert documentation.