X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Froot-helpers%2Futils.ts;h=af94ed6cac82f0d3039e7609a2482e663417fae1;hb=d73786b5798fcfdfbe7e42919a8cde72de97feba;hp=00bd92411247aedfb890ea38fac7e3bd4acca28d;hpb=fc21ef5c62d845576a916414468b3a57370a57b2;p=github%2FChocobozzz%2FPeerTube.git 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 @@ -function objectToUrlEncoded (obj: any) { - const str: string[] = [] - for (const key of Object.keys(obj)) { - str.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])) - } - - return str.join('&') -} - function copyToClipboard (text: string) { const el = document.createElement('textarea') el.value = text @@ -27,6 +18,5 @@ function wait (ms: number) { export { copyToClipboard, - objectToUrlEncoded, wait }