]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/root-helpers/utils.ts
Refactor - improve offset content handling with fixed sub-menu and broadcast-message
[github/Chocobozzz/PeerTube.git] / client / src / root-helpers / utils.ts
1 function 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
10 export {
11 objectToUrlEncoded
12 }