1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

deal with refresh token in embed

This commit is contained in:
Rigel Kent 2020-08-03 18:06:49 +02:00 committed by Chocobozzz
parent 71ab65d02f
commit 4504f09f6e
25 changed files with 320 additions and 194 deletions

View file

@ -81,15 +81,6 @@ function immutableAssign <A, B> (target: A, source: B) {
return Object.assign({}, target, source)
}
function objectToUrlEncoded (obj: any) {
const str: string[] = []
for (const key of Object.keys(obj)) {
str.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]))
}
return str.join('&')
}
// Thanks: https://gist.github.com/ghinda/8442a57f22099bdb2e34
function objectToFormData (obj: any, form?: FormData, namespace?: string) {
const fd = form || new FormData()
@ -207,7 +198,6 @@ export {
sortBy,
durationToString,
lineFeedToHtml,
objectToUrlEncoded,
getParameterByName,
populateAsyncUserVideoChannels,
getAbsoluteAPIUrl,