diff --git a/src/Jackett.Common/Content/custom.js b/src/Jackett.Common/Content/custom.js index 779f93284..c22607fcd 100644 --- a/src/Jackett.Common/Content/custom.js +++ b/src/Jackett.Common/Content/custom.js @@ -1367,6 +1367,13 @@ function bindUIButtons() { return false; }); + $('#api-key-copy-button').click(function () { + var apiKey = api.key; + if (apiKey !== null || apiKey !== undefined) { + copyToClipboard(apiKey); + } + }); + $('#jackett-add-indexer').click(function () { $("#modals").empty(); displayUnconfiguredIndexersList(); diff --git a/src/Jackett.Common/Content/index.html b/src/Jackett.Common/Content/index.html index 949acd0ac..c02f36fdf 100644 --- a/src/Jackett.Common/Content/index.html +++ b/src/Jackett.Common/Content/index.html @@ -43,6 +43,9 @@
API Key: +

@@ -743,6 +746,6 @@ - +