Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-08-04 04:03:31 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-08-04 04:03:31 +0300
commit58cf082cfcba09fa8a129c4181f35df37857af1d (patch)
tree296d43c5e0673d76b6d679b6499c799996c7b9df /lib
parent51ffc85dc3d2390e4594873d2fb1e4e405c30644 (diff)
Add options to disable autoplay/hide controls
Fix #878.
Diffstat (limited to 'lib')
-rw-r--r--lib/file.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/file.js b/lib/file.js
index 5f8021c..65c9187 100644
--- a/lib/file.js
+++ b/lib/file.js
@@ -85,14 +85,14 @@ File.prototype.getBlobURL = function (cb) {
streamToBlobURL(this.createReadStream(), this._getMimeType(), cb)
}
-File.prototype.appendTo = function (elem, cb) {
+File.prototype.appendTo = function (elem, opts, cb) {
if (typeof window === 'undefined') throw new Error('browser-only method')
- render.append(this, elem, cb)
+ render.append(this, elem, opts, cb)
}
-File.prototype.renderTo = function (elem, cb) {
+File.prototype.renderTo = function (elem, opts, cb) {
if (typeof window === 'undefined') throw new Error('browser-only method')
- render.render(this, elem, cb)
+ render.render(this, elem, opts, cb)
}
File.prototype._getMimeType = function () {