mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-19 06:06:54 +00:00
Enhanced JS function.
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
* MIT License
|
||||
*/
|
||||
|
||||
function copyLink() {
|
||||
var url = window.location.href;
|
||||
function copyLink(url) {
|
||||
if (!url || 0 === url.length)
|
||||
url = window.location.href;
|
||||
var $temp = $("<input>");
|
||||
|
||||
$("body").append($temp);
|
||||
|
||||
Reference in New Issue
Block a user