aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers/utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-31 08:59:30 +0200
committerChocobozzz <me@florianbigard.com>2022-05-31 10:39:56 +0200
commitf1a0f3b701e005a9533f09b7913c615376e42f32 (patch)
tree807e5377635bfa30d42ce42bdcd88ff7b1553257 /client/src/root-helpers/utils.ts
parente5a781ec25191c0dbb4a991f25307732d798619d (diff)
downloadPeerTube-f1a0f3b701e005a9533f09b7913c615376e42f32.tar.gz
PeerTube-f1a0f3b701e005a9533f09b7913c615376e42f32.tar.zst
PeerTube-f1a0f3b701e005a9533f09b7913c615376e42f32.zip
Refactor embed
Diffstat (limited to 'client/src/root-helpers/utils.ts')
-rw-r--r--client/src/root-helpers/utils.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/client/src/root-helpers/utils.ts b/client/src/root-helpers/utils.ts
index 00bd92411..af94ed6ca 100644
--- a/client/src/root-helpers/utils.ts
+++ b/client/src/root-helpers/utils.ts
@@ -1,12 +1,3 @@
1function objectToUrlEncoded (obj: any) {
2 const str: string[] = []
3 for (const key of Object.keys(obj)) {
4 str.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]))
5 }
6
7 return str.join('&')
8}
9
10function copyToClipboard (text: string) { 1function copyToClipboard (text: string) {
11 const el = document.createElement('textarea') 2 const el = document.createElement('textarea')
12 el.value = text 3 el.value = text
@@ -27,6 +18,5 @@ function wait (ms: number) {
27 18
28export { 19export {
29 copyToClipboard, 20 copyToClipboard,
30 objectToUrlEncoded,
31 wait 21 wait
32} 22}