Sfoglia il codice sorgente

Update Copy Link url after short url is generated

Karthik Kasturi 1 anno fa
parent
commit
ce188671db
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      js/privatebin.js

+ 1 - 0
js/privatebin.js

@@ -2158,6 +2158,7 @@ jQuery.PrivateBin = (function($) {
                     $pasteUrl.prop('href', shortUrl);
                     // we pre-select the link so that the user only has to [Ctrl]+[c] the link
                     Helper.selectText($pasteUrl[0]);
+                    CopyToClipboard.setUrl(shortUrl);
                     return;
                 }
             }