mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add subtitle fix for tizen
This commit is contained in:
parent
220c6197b6
commit
374a543064
14 changed files with 44 additions and 129 deletions
|
@ -11,12 +11,12 @@
|
|||
"test/"
|
||||
],
|
||||
"homepage": "https://github.com/github/fetch",
|
||||
"version": "1.1.0",
|
||||
"_release": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"_release": "1.1.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.0",
|
||||
"commit": "76f6a09cbfc1c955479dd9da2a333f7404c79de2"
|
||||
"tag": "v1.1.1",
|
||||
"commit": "f7a514829820fc77c0f884c74cf2d36356a781c0"
|
||||
},
|
||||
"_source": "https://github.com/github/fetch.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
32
dashboard-ui/bower_components/fetch/fetch.js
vendored
32
dashboard-ui/bower_components/fetch/fetch.js
vendored
|
@ -186,6 +186,16 @@
|
|||
return promise
|
||||
}
|
||||
|
||||
function readArrayBufferAsText(buf) {
|
||||
var view = new Uint8Array(buf)
|
||||
var chars = new Array(view.length)
|
||||
|
||||
for (var i = 0; i < view.length; i++) {
|
||||
chars[i] = String.fromCharCode(view[i])
|
||||
}
|
||||
return chars.join('')
|
||||
}
|
||||
|
||||
function bufferClone(buf) {
|
||||
if (buf.slice) {
|
||||
return buf.slice(0)
|
||||
|
@ -249,6 +259,14 @@
|
|||
return Promise.resolve(new Blob([this._bodyText]))
|
||||
}
|
||||
}
|
||||
|
||||
this.arrayBuffer = function() {
|
||||
if (this._bodyArrayBuffer) {
|
||||
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
||||
} else {
|
||||
return this.blob().then(readBlobAsArrayBuffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.text = function() {
|
||||
|
@ -260,9 +278,7 @@
|
|||
if (this._bodyBlob) {
|
||||
return readBlobAsText(this._bodyBlob)
|
||||
} else if (this._bodyArrayBuffer) {
|
||||
var view = new Uint8Array(this._bodyArrayBuffer)
|
||||
var str = String.fromCharCode.apply(null, view)
|
||||
return Promise.resolve(str)
|
||||
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
||||
} else if (this._bodyFormData) {
|
||||
throw new Error('could not read FormData body as text')
|
||||
} else {
|
||||
|
@ -270,16 +286,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (support.arrayBuffer) {
|
||||
this.arrayBuffer = function() {
|
||||
if (this._bodyArrayBuffer) {
|
||||
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
||||
} else {
|
||||
return this.blob().then(readBlobAsArrayBuffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (support.formData) {
|
||||
this.formData = function() {
|
||||
return this.text().then(decode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue