aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets/javascripts/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/assets/javascripts/services.js')
-rw-r--r--src/assets/javascripts/services.js26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 567ffc84..6801d54b 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -792,25 +792,21 @@ function processUpdate() {
/**
* @param {URL} url
- * @param {boolean} test
*/
-async function copyRaw(url, test) {
+async function copyRaw(url) {
const newUrl = await reverse(url)
if (newUrl) {
- if (!test) {
- if (!isChrome) {
- navigator.clipboard.writeText(newUrl)
- } else {
- var copyFrom = document.createElement("textarea");
- copyFrom.textContent = newUrl;
- document.body.appendChild(copyFrom);
- copyFrom.select()
- document.execCommand('copy')
- copyFrom.blur();
- document.body.removeChild(copyFrom);
- }
+ if (!isChrome) {
+ navigator.clipboard.writeText(newUrl)
+ } else {
+ var copyFrom = document.createElement("textarea");
+ copyFrom.textContent = newUrl;
+ document.body.appendChild(copyFrom);
+ copyFrom.select()
+ document.execCommand('copy')
+ copyFrom.blur();
+ document.body.removeChild(copyFrom);
}
- return newUrl
}
}